Top "Jpanel" questions

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

How to add padding to a JPanel with a border

I want to add padding to some JPanels. I found this answer: https://stackoverflow.com/a/5328475/1590323 It worked fine for …

java swing jpanel border padding
How to arrange multiple panels in JFrame

I am trying to make a simple calculator to practice Graphics (i am a complete GUI noob). I am having …

java swing jpanel layout-manager calculator
placing a transparent JPanel on top of another JPanel not working

I am trying to place a JPanel on top of another JPanel which contains a JTextArea and a button and …

java swing jpanel glasspane jlayer
How to remove the padding between in the JPanel still using a flow layout?

Here's the portion of my java application GUI that I have a question about. What this GUI consists is a …

java swing jpanel padding layout-manager
JPanel inside another

I have a problem with a JPanel inside another one. I don't know why, but the result is a simple …

java swing jpanel
Running a JPanel Form

I am beginner in java. I created a JPanel form in java (NetBeans). then, i defined some actions such as …

java swing netbeans jpanel gui-builder
Drawing a rectangle that won't disappear in next paint

I trying to create a JPanel that draws rectangles. The Panel needs to draw alot of rectangles, but they dont …

java swing graphics jpanel paint
How to auto scroll to bottom in Java Swing

I have a simple JPanel with a JScrollPane (with vertical scrollbar as needed) on it. Things get added to (or …

java swing scroll jpanel jscrollpane
Export JPanel Graphics to .png or .gif or .jpg

I'm trying to develop some sort of paint using Java. I have a JComponent that is located inside of a …

java image export jpanel
How to have Collapsable/Expandable JPanel in Java Swing

I want a JPanel that can be Collapsed or Expanded when user clicks on a text/icon on its border. …

java swing jpanel expand collapse