Questions tagged as 'jframe'

1
answer

How to minimize Main frame when opening a new frame

I have a problem, I created a java application with a menu that calls several screens. When I opened some screen, I wanted my main application screen to be minimized. I tried with setvisible(false) but it did not work out as expected....
asked by 13.06.2016 / 16:54
1
answer

How can I make my code with fewer rows?

I currently have a large number of lines in my code: Below the player insertion part, these players will have the names searched from the bank and sent by cmb box. private void Verificar() { String jogadores = JOptionPane.showInputDialo...
asked by 10.08.2016 / 02:06
1
answer

Print ArrayList, Java Swing [closed]

I'm starting studies on Java applications with Swing, and I have questions about how to print my ArrayList. What is the best way to print or list an ArrayList within a window? In my case we have a calendar, we insert contacts into an Array...
asked by 13.11.2015 / 22:59
1
answer

Doubt regarding dispose () in JFrame

I'm trying to check the login screen to see if the configuration file where the access information is already set exists. If it does not exist, it was supposed to give dispose on the login screen and open the setup. For some reason,...
asked by 12.07.2017 / 17:39
1
answer

How to open a JFrame passed as a parameter?

My idea is to open this window as a parameter without losing any attribute, for example, I have the class: public class Teste { JFrame janela = new JFrame; public ControllerJPreTransacao(JFrame janela) { this.janela...
asked by 13.06.2016 / 18:59
1
answer

How do I get foreign key values in a JFrame form

I'm creating a form in JFrame to insert data into a table that contains two foreign keys (these keys are not automatically generated). What do I have to put in the insert to get the foreign keys? public void inserir(Tratamento tratamento) {...
asked by 25.05.2014 / 16:47
0
answers

Calling a jFrame of another class in a click event in java [duplicate]

I have a JFrame with two buttons, and a second class that has a JFrame with other features ... I wanted to make the second window open by clicking one of the buttons in the first window, but I can not make the call inside of the first class cl...
asked by 06.06.2018 / 17:06
1
answer

How can I update a JLabel?

I need to update a JLabel every time I press a particular button that looks for a database form to generate a chart, but this only works the first time. My idea was this: if JLabel is empty it adds the graph generated by the search, if it is fil...
asked by 27.03.2018 / 01:47
1
answer

JButton ActionPerformed does not open the Frame before ending all events

I have the following problem: When I click on the JButton I want to open a Waiting Frame that prompts the user to wait for a while and in the meantime the program will process the query methods that take some time. However, by clicking on Jbu...
asked by 22.02.2018 / 13:27
0
answers

Internal adjustable frame

I made a simple netbeans code for an internalframe that loads inside the jframe, but the internalframe is a fixed size. If I open it with full screen setExtendedState (java.awt.Frame.MAXIMIZED_BOTH); It has an empty space If I try to dec...
asked by 25.01.2018 / 14:09