Most voted "jframe" questions
Jframe is the class of the javax.swing package that represents a window. Use this tag only for questions related to this component
Learn more…69 questions
Sort by count of
-
0
votes1
answer700
viewsRefresh in jframe automatically
I will start a project where I will do the control of queues in java, normal queues even, as if you arrive at the bank and see on the screen your name. I’ll give a summary of the project to be…
-
0
votes0
answers15
viewsHow to Disable Jframe X
How to disable X from a frame? The below option I found just doesn’t perform close action: frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); I need the X button of the frame to be disabled…
-
0
votes1
answer63
viewsHow can I make my code with fewer lines?
I currently have a large number of lines in my code: Below is the insertion part of players, these players will have the names searched from the bank and sent by cmb box. private void Verificar() {…
-
0
votes0
answers200
viewsHow to make Jframe with Jmenubar by calling another Jframe?
Hello, I have a main class that is working but when you click on the menu Register and then client it does not call the other screen Jframe Register clienteui. Here is the snippet that was to call…
-
0
votes1
answer411
viewsDoubt concerning Jframe Dispose()
I am trying to check the login screen, to know if there is already the configuration file where the access information is set. If it doesn’t exist, it was supposed to give dispose on the login…
-
0
votes0
answers50
viewsWhy does Jframe have different sizes between window mode and full screen mode?
Well, I was doing the setLocation so that the Graphics are compatible with any game resolution. Then I realized a certain problem when I tried to make a frame.getHeight - figura.getHeight (The…
-
0
votes1
answer85
viewsJbutton’s actionperformed does not open the Frame before finishing all events
I have the following problem: By clicking on Jbutton I want to open a Waiting Frame that asks the user to wait a few moments and meanwhile the program will process the query methods that take some…
-
0
votes0
answers139
viewsCalling a jFrame from another class in java click event
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 on one of the buttons in the first window, but I…
-
0
votes1
answer64
viewsPersonal I would like to know how to exchange data between two JFRAME
Passi 1 = Selected and sent the item table: Which is another Jframe private void jTableProduto2MouseClicked(java.awt.event.MouseEvent evt) { Produto produto = new Produto(); Home home = new Home();…
-
0
votes1
answer26
viewsHow do I retrieve information from a Java window in a Combobox from another window?
I have a register of suppliers and one of products, and I would like to recover in the product registration window the information of which suppliers are already registered to be able to save in the…
-
-1
votes1
answer1014
viewsHow to call a Jframe from another Jframe with different classes
I’m creating a little game of rock paper and scissors and would like to know what I call a JFrame other’s JFrame, only from different classes. Or maybe I should do it in different methods? I tried…
-
-1
votes3
answers1018
viewsCall another class (Java)
How do I call a "class" of type jFrame for example from my main class? My jFrame has its own main that gives the true setVisible for it to appear, but I wanted to access this main of it from my main…
-
-1
votes1
answer217
viewsGetting the mouse coordinates out of Jframe
I have a Jframe implemented in a simple way with Mousemotionlistener in java to get the coordinates of a variable, and I am returning with gety() and getx(). So far so good, but when I noticed the…
-
-1
votes1
answer53
viewsHow can I display a string provided with an arraylist in a combobox?
Good morning. I have a record of films, which are found in an arraylist. These films have a name, director etc. Since this array is public, I would like to display, in another interface, the name of…
-
-1
votes1
answer157
viewsError setting model in Jtable
So people, I was developing a frame that received a table from the database, I used the same scope of the function several times and it worked perfectly, I just modified the necessary to generate…
-
-1
votes1
answer185
viewsHow do I update a Jlabel?
I need to update a Jlabel every time I press a particular button that searches for a database form to generate a chart, but it only works the first time. My idea was this: if Jlabel is empty it adds…
-
-1
votes1
answer37
viewsNull array in a constructor (java)
The purpose of the code is to pass a arraylist of Sessao for the builders sala2D and 3D(in the constructor, the name of the arraylistof Sessao is "Session"). But after some tests it is found that…
-
-1
votes1
answer38
viewsCheck if imput is Int in a netbeans interface
Good evening! I am making a program with Netbeans IDE interface. I need to compare if the input data in the text field where it should be said which quantity is a String because I just wanted to…
-
-2
votes1
answer2480
viewsCan you program in java by creating frame by VS code?
I’m learning java swing and wanted to know if there’s a way to do a Jframe and run vs code, because I want to start using just one ide for everything and netbeans takes too long to start, and how to…