Questions tagged as 'awt'

1
answer

Draw rows in binary tree graphing

I'm trying to draw a binary tree using swing and awt in java. I can already show the nodes of the tree but I can not draw the rows of a parent node to their children. I have the Node, TreeGUI, DrawTree, and Main classes. This image is like the e...
asked by 27.05.2016 / 19:53
1
answer

How to draw a picture with Canvas?

I have this code and want to draw an image: public void render(){ BufferStrategy bs = getBufferStrategy(); if(bs == null) { createBufferStrategy(3); return; } Graphics g = bs.getDrawGraphics(); g.dispo...
asked by 09.07.2017 / 04:15
1
answer

Delete selection from a List

In my java class I created a form and created a button that cleans all fields. But I can not get it to delete the selection of a list that I have on the form, it deletes the textfield and radios butto n but not the list. Note: I...
asked by 02.11.2016 / 18:43
1
answer

Doubt about getSource () instanceof

Instanceof is a binary operator that tests whether an object is the subtype of a given type. Ex: Object fonte = e.getSource(); if (fonte instanceof JButton){ ... } If getSource () returned information from a JButton the result of the...
asked by 09.12.2015 / 15:18
0
answers

Doubt over BufferedImage and pixel manipulation

I would like a more technical and in-depth explanation of what happens in this line of code (I've researched before but understood only superficially): BufferedImage bf = new BufferedImage(Window.WIDTH,Window.HEIGHT, BufferedImage.TYPE_INT_RGB...
asked by 21.09.2018 / 07:03
0
answers

Pointer error in a table-fill method

Apparently it's supposed to be right, but when I run it, it leaves the following errors: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at bibl.PesquisaSimpl.preencheTabela(PesquisaSimpl.java:188) at bibl.Pesquis...
asked by 20.11.2014 / 19:32
1
answer

Are API components in the aws package? [closed]

I have the following question. And yes, there are "aws" instead of "awt", but I think the correct one would be "awt".    Are API components in the aws package?       I - Panel       II - Label       III - Windows       IV - Checkbox     ...
asked by 18.11.2017 / 17:52