Questions tagged as 'jpanel'

2
answers

JPanel width exceeding the dimension defined in getPreferredSize ()

I'm trying to create a breakout game, I've already done a lot of logic, but I've discovered an annoying problem regarding the size of the "scene" panel of the game. Here is my class Board , which is the panel where all the components of...
asked by 11.05.2017 / 16:33
1
answer

Table 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 PanelListClientes() is undefined at view.FramePrincipal.li...
asked by 20.11.2018 / 00:06
1
answer

Remove JPanel from view

I would like to know how to remove a JPanel that is within a JFrame . I do not want to use the information or anything, I just want it to close. Using setVisible(false) leaves the panel invisible, I do not want this, I...
asked by 31.03.2016 / 13:00
1
answer

Insert background image in JPanel [duplicate]

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 Agente daenerys; private Timer timer; public...
asked by 23.07.2016 / 16:02
1
answer

How to remove add / remove panel according to checkbox selection?

I'm adding a panel at the bottom of a JFrame , when a checkbox is selected, and when I unmark it, remove the panel, and leave only the checkbox, however, I'm not getting it, I think the manager layout is preventing the effect I want...
asked by 24.06.2018 / 21:05
1
answer

JSlider does not appear in JPanel after being inserted

I was trying to add JSlider to JPanel but it does not appear. Could you tell me where I'm wrong? import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JPanel; import javax.s...
asked by 08.09.2017 / 19:48
1
answer

Problem inserting JTextField into JPanel that is inside JTabbedPane [closed]

I have a Swing application where the main window is composed of a JtabbedPane that contains some classes that extend JPanel [ViewPrincipal, ViewCadastro, ViewReport, etc ...]. When I add JLabels and JButtons, they appear and win...
asked by 21.04.2017 / 21:38
0
answers

Interface Lock in NetBeans

I am developing a program for client-server communication. I'm developing the graphical interface of the program based on JPanel / Forms . The client data is sent correctly to the server. My problem is when I go to fetch the data...
asked by 09.12.2017 / 13:01
1
answer

How to initialize a blank JPanel?

I'm starting to work with the swing and event handling package and here's what I came up with to test some program that would create rectangles of random sizes and colors. The creation of the code and execution went all out, except that the fram...
asked by 26.06.2017 / 04:34
1
answer

Changing the contents of a panel in JFrame

In my application, I have a main screen with a menu. The contents of each menu screen should appear inside a main screen panel, I do not want to open a new screen for every thing. What I need then is to change the contents of the main screen...
asked by 25.10.2017 / 05:37