Linked Questions
1,303 questions linked to/from The Use of Multiple JFrames: Good or Bad Practice?
4 votes
2 answers
2k views
Swing - Dispose a frame [duplicate]
My aim is for an action listener to close a specific JFrame when the user hits the JButton to quit. Overall, when the program starts a large JFrame opens then a small one in front....in my code the ...
-2 votes
2 answers
1k views
How to close a JFrame while opening another JFrame? [duplicate]
I have a frame (main). There are two buttons: Items and Sale. When I click button Items it opens a frame (Items) and I want to, when I click on button Sale, it should close the Items and open Sale. ...
0 votes
0 answers
820 views
Java - multiple screens gui application [duplicate]
What is the best way to create a java application with multiple screens? For example, pressing a button switches to the next screen. Should I use a JFrame for each screen? Thanks
-1 votes
1 answer
655 views
Java JFRAME button then new gui [duplicate]
So, I try to make a Java Program, that when you run it, the first screen will be welcome, under it button "login", under it "register". And now I need to figure how if I press one of these buttons, ...
0 votes
0 answers
579 views
About java GUI form in intellij [duplicate]
How to close my opened GUI form and open another GUI form with just a button in first GUI form. this is my first GUI form package com.company; import javax.swing.*; import java.awt.*; import java....
0 votes
1 answer
336 views
What is the proper way to navigate between windows? [duplicate]
I am trying to make a simple Customer tracking program.It stars with a window with 4 buttons and you choose a task to do. I need to navigate between different windows -Home Menu -New Customer -...
0 votes
0 answers
94 views
Jumping between windows in swing [duplicate]
I have to use netbeans IDE and swing to create GUI for my application. I need several windows, one at the time. I could of course use one JFrame and set visibility of components to false once they're ...
0 votes
0 answers
58 views
Is displaying a new JFrame a good pratice? [duplicate]
I have a class called NewSale which extends JFrame The JFrame is used by the user to create a sale (add products, choose payment method, etc). When the user starts a new sale the software ...
0 votes
0 answers
57 views
how to close an instance of jframe [duplicate]
In my code i generate some images and display them every image in a jframe, but when i close on the jframes i found all the other closes as well. I want when i close one of the jframes, the others ...
0 votes
0 answers
44 views
What is the functional difference between creating a Java frame inside the main class and creating a Java Frame inside a constructor? [duplicate]
If I create a frame inside the 'main()', then only one instance of the frame would be created. If I create a frame inside a constructor, then each time the class is instantiated, a new frame would ...
0 votes
0 answers
45 views
Closing/Disposing two forms at once after logging in [duplicate]
So the Login.java (first form) is like a homepage then a JButton "Start" is in the middle of the Login.java which appears the LoginStudent.java where the user enters their email and password....
248 votes
11 answers
51k views
How to add JTable in JPanel with null layout?
I want to add JTable into JPanel whose layout is null. JPanel contains other components. I have to add JTable at proper position.
72 votes
14 answers
166k views
How to make a JFrame Modal in Swing java
I have created one GUI in which I have used a JFrame. How should I make it Modal?
16 votes
7 answers
110k views
Java swing application, close one window and open another when button is clicked
I have a netbeans Java application that should display a JFrame (class StartUpWindow extends JFrame) with some options when the application is launched, then the user clicks a button and that JFrame ...
20 votes
5 answers
13k views
Remove Top-Level Container on Runtime
Unfortunately, it looks like this recently closed question was not well understood. Here is the typical output: run: Trying to Remove JDialog Remove Cycle Done :-) Checking if still ...