Top "Jpanel" questions

JPanel is a container in the Java Swing Framework that allows custom rendering using layout managers.

Draw a line in a JPanel with button click in Java

I want to draw a line in a JPanel. This is my GUI and I want a line in the …

java swing graphics line jpanel
Add a JFreeChart in to JPanel

if i have a my Jpanel and a my JFreeChart. How can I add this Chart in to the JPanel? …

java swing user-interface jpanel jfreechart
Java Swing - How to disable a JPanel?

I have several JComponents on a JPanel and I want to disable all of those components when I press a …

java swing jpanel
How to get real JPanel Size?

How should I get real JPanel size in JFrame?

java swing size jpanel
Reason for "AWT-EventQueue-0" java.lang.NullPointerException error

I'm creating a video game in Java and I am trying to retrieve a list of coordinate points and draw …

java swing compiler-errors jpanel paintcomponent
Java GUI repaint() problem?

I have a JFrame. This JFrame contains a JButton. I click the JButton and 10 JTextFields are created. the problem: I …

java user-interface refresh jpanel repaint
Not able to set location of JLabel on a JPanel

I have set location (0,0) for the JLabel with respect to the JPanel. But it is appering at the center and …

java swing jpanel jlabel
Add ButtonGroup to JPanel

JPanel.add(ButtonGroup); Is not working. I MUST add it to a JPanel because I am using tabs. This is …

java swing jpanel awt buttongroup
Java setBounds not working with JPanel

i am doing a small Gui in java. i am using setBounds methods to set the position of buttons etc …

java swing jpanel layout-manager
Java- how to clear graphics from a JPanel

I'm creating a simple program where I draw a black oval where I click with my mouse. However I want …

java swing jpanel java-2d