Most voted "jpanel" questions
Jpanel is a container in the Java Swing Framework that allows custom processing using layout managers. Jpanels can be nested for flexibility. There is also a jQuery plugin with the same name that provides accordions , tabs and simple container fieldsets mark up
Learn more…13 questions
Sort by count of
-
5
votes1
answer42
viewsIn Java Swing, should I extend Jpanel and top-level containers like Jframe?
Has in the Soen but I was not satisfied with the answers, and temporarily I am not able to ask IF.. Top-level containers like the JFrame I guess there’s no need, but a JPanel kind of made to be an…
-
3
votes2
answers213
viewsJpanel width exceeding the dimension defined in getPreferredSize()
I’m trying to create a little game Breakout, I’ve done a lot of logic, only I discovered an uncomfortable problem related to the size of the panel of the "scene" of the game. Follow my class Board,…
-
2
votes1
answer898
viewsRemove Jpanel from view
I would like to know how to remove one JPanel that is inside a JFrame. I don’t want to use the information or anything, I just want it to close. Use setVisible(false) makes the panel invisible, I…
-
2
votes1
answer1079
viewsInsert background image in Jpanel
I already checked and the path is correct, but when I run nothing appears on the screen: public class MapaInterface extends JPanel implements ActionListener { private Image fundo; public static…
-
2
votes1
answer51
viewsTable Not Loading
I’m trying to make the table list load and not loading always gives this error Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problem: The constructor…
-
1
votes1
answer135
viewsProblem inserting Jtextfield inside Jpanel inside Jtabbedpane
I have a Swing app where the main window consists of a JtabbedPane which contains some extended classes JPanel [Viewprincipal, Viewcadastro, Viewrelatorio, etc...]. When I add Jlabels and Jbuttons,…
-
1
votes0
answers155
viewsBlocking the Interface in Netbeans
I’m developing a program for client-server communication. I am developing the graphical interface of the program based on JPanel/Forms. The client data is sent correctly to the server. My problem is…
-
1
votes1
answer51
viewsJslider does not appear in Jpanel after inserting
I was trying to add a JSlider in a JPanel but he doesn’t show up. Could you tell me where I’m going wrong? import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.JFrame;…
-
1
votes1
answer112
viewsHow to remove add/remove dashboard as you select from checkbox?
I’m adding a panel at the bottom of a JFrame, when a checkbox this selected, and when I uncheck it, remove the panel, and leave only the checkbox, however, I’m not getting, I think the layout…
-
0
votes1
answer1056
viewsHow do you resize a Jpanel inside a Jscrollpane automatically?
After adding a greater amount of buttons than the JPanel support, I would like to update(increase the JPanel) automatically, how can I do this? private JPanel contentPane; private static int tamanho…
-
0
votes1
answer1113
viewsSwap the contents of a panel in Jframe
In my app, I have a main screen with a menu. The contents of each menu screen should appear within a main screen panel, do not want to open a new screen for each thing. What I need then is to change…
-
0
votes1
answer623
viewsAlign JPANEL button
I want to align a single button to the Jpanel, but I’m not succeeding, using the default layout. public class Test extends JFrame { private JButton btn; private JPanel painel; private JScrollPane…
-
0
votes1
answer448
viewsHow to initialize a blank Jpanel?
I’m starting to work with the package swing and manipulation of events and I came up with an idea to test some program that would create rectangles of random sizes and colors. Code creation and…