Top "Jpanel" questions

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

Adding JPanel to JScrollPane

I have a gui which has a Panel that contains a sequence of labels and TextFields and uses a spring …

java jpanel jscrollpane layout-manager springlayout
JPanel Drop Shadow

I have a JPanel element and I would like added a drop shadow to it, how can I add a …

java swing jpanel shadow
JOptionPane with username and password input

I have my own Dialog pop up with two textfields, two JLabel and a "ok" JButton. The pop up is …

java jpanel jbutton jtextfield joptionpane
BorderLayout.CENTER doesn't center

I can't get my JLabel to center in my JPanel after adding a ChartPanel to it: JPanel panel = new JPanel(…

java swing jpanel layout-manager border-layout
MouseListener for JPanel missing mouseClicked events

I have a JPanel that I have created a MouseListener for and I am seeing some behavior that I can't …

swing event-handling mouseevent jpanel
Filling a JList with data

Does anyone have any good tutorials on how to fill a JList (within a JPanel) with user inputted data. Specifically, …

java swing user-interface jpanel jlist
Using JFrame or JPanel

I'm about to begin developing a new small application. It'll contain around 10 different GUIs. Using Netbeans, I can create either …

java swing jframe jpanel
JPanel which one of Listeners is proper for visibility is changed

Are there some rules, or good/bad experiences with AncestorListener, ComponentListener or HierarchyListener listening for visibility of changes with JPanel …

java swing listener jpanel jcomponent
Java drawing on JPanel which on a JFrame

Hi I have a JFrame and there are two JPanels on top of it. My intention is to draw on …

java swing jpanel custom-painting
Clicking on a drawn object

I've got a class called Shape which inherits from JPanel. A number of sub-classes in turn extend the Shape classes, …

java swing graphics jpanel paintcomponent