Questions tagged [jpanel]

JPanel is a container in the Java Swing Framework that allows custom rendering using layout managers. JPanels can be nested for flexibility. There is also a jQuery plugin with the same name that provides accordions, tabs, and fieldsets from simple container mark up.

JPanel is a container in the Java Swing Framework that allows custom rendering using layout managers. JPanels can be nested for flexibility. There is also a jQuery plugin with the same name that provides accordions, tabs, and fieldsets from simple container mark up.

Resources:

7557 questions
1
vote
0 answers

in jframe one jpanel is overwritten by another jpannel"

I created a application with netbeans in one jframe with in 4jpannels. When I'm pressing one jbutton the jpanel opened and close that jpanel then another button clicked the same jpanel will appear without opening the current jpanel /* * To change…
1
vote
1 answer

Disabled checkbox added to the panel is not disabled

I have a JDialog which has multiple tabs.One of the tabs populates a dynamic list of checkboxes and adds it to the JPanel.This panel is then added to the JTabbedPane. In this dynamic list, I would like to disable a few checkboxes based on the some…
sherry
  • 352
  • 2
  • 8
  • 17
1
vote
1 answer

How to get JScrollPanes within a JScrollPane to follow parent's resizing

So I have a bunch of JTables. Each JTable is inside a JScrollPane. I'm then adding each of these JScrollPanes to a JPanel. I'm then adding this JPanel to a JScrollPane then that to another JPanel with BorderLayout. The larger JScrollPane properly…
Andrew Rasmussen
  • 14,912
  • 10
  • 45
  • 81
1
vote
1 answer

Jtabbedpane how to set one tab enable to false

I have an application using JtabbedPane. Each tab is a JPanel. I wrote a function that should set certain tabs enabled to false in certain cases. Here is the code but I don't know why it doesn't work. public boolean DBEnabledTabs(int zakladki) { …
Bulit
  • 975
  • 6
  • 15
  • 26
1
vote
2 answers

Updating an existing JFrame's components externally

Here is the problem I'm running into - I have a GUI class implementing JFrame with a constructor that builds the Frame with 9 Panels in a 3x3 GridLayout. Each Panel is initialized in this constructor and have their own listeners, etc. However, there…
nolasaint
  • 145
  • 1
  • 8
1
vote
2 answers

How to set coordinates for components?

I'm a new user on Swing, and I have problem with drawing components by coordinates. Please, look at this code: JFrame frame=new JFrame(); frame.setBounds(new Rectangle(0, 0, 700, 600)); …
user1166635
  • 2,741
  • 6
  • 22
  • 32
1
vote
1 answer

JPanel content goes black after opening it from another Jframe

So i have a Jframe with a JPanel in it, and there are some buttons on there. when a button is pressed it opens up another Jframe with another Jpanel in it, but the content of this Jframe is all black. There are supposed to be 4 buttons, and when i…
Petr Safar
  • 107
  • 2
  • 11
1
vote
1 answer

No Scrollbar - JScrollPane with JPanel

I have a JSplitPane with JSplitPane jSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, movieSearchResultTableScrollPane, movieSearchInfoScrollPane); I have set: jSplitPane.setOneTouchExpandable(true); The movieSearchResultTableScrollPane…
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
1
vote
3 answers

Java GridBag layout

I am having a problem using GridBagLayout, I cant seem to get a hang of it. below is what my GUI should look like, I cant seem to get it working. The main problem is lining the text boxes & labels at the right & left hand side.
Chris Mowbray
  • 295
  • 1
  • 3
  • 15
1
vote
1 answer

Keypressed while a thread is running - how to capture the keys?

I have a JPanel that contains a few other objects that do stuff. I will simplify the example by talking about some circle object (defined by circle class I made), and a square object (similar). the circle moves randomly around the screen, while the…
Zephyer
  • 333
  • 6
  • 16
1
vote
1 answer

Java Swing component interaction (BoxLayout and Label)

OK, several questions about the test code below... I don't have the full working program to post, but I'm hoping people know Swing well enough to take a stab at it. This is a JLabel inside of a JPanel(BoxLayout), and I'm working on the sizing of…
orbfish
  • 7,381
  • 14
  • 58
  • 75
1
vote
3 answers

JLabels dont show

So I have a panel and depending upon users entry they are populated with an x number of jlabels. Now the problem is, when the user entered information the labels successfully populate but they do not display properly in the panel; they don't even…
Soler Mani
  • 301
  • 3
  • 5
  • 15
1
vote
1 answer

I can't display my JPanel components when I change it on a JFrame

I can't seem to display my components of my panel onto the frame. Can someone please assist? I just gives me a blank JFrame. No more components on it. import javax.swing.JPanel; /* * To change this template, choose Tools | Templates * and open…
Ajan
  • 39
  • 4
1
vote
1 answer

Displaying JFrames inside JSplitPane Java

I'm making GUI using JSplitPane and I want to display a JFrame in the left side of the JSplitPane and another JFrame inside the right side of a JSplitPane. The name of the other JFrame is Minimize.java and Diagram.java. My problem is how can i call…
Alvin Pulido
  • 49
  • 2
  • 10
1
vote
2 answers

NetBeans & Swing - dynamically add JPanel to JDialog

I am designing an application in NetBeans, as illustrated in the screenshot below. When the user clicks on a JButton on a JFrame, a JDialog pops-up asking the user to enter a numeric value using a numeric keypad. I would like the JDialog to…
jadrijan
  • 1,438
  • 4
  • 31
  • 48
1 2 3
99
100