Questions tagged as 'jframe'

1
answer

Close system after closing Dialog

How can I make a login screen when closing, also close the entire system? In the code below I have a main screen with the "change user" button, when clicking, the system opens a Dialog for the new user to log in, however if the user cl...
asked by 13.05.2018 / 05:43
2
answers

How to play the data of a Jlist in another Jlist that is in another Jframe?

I tried several ways, but I could not find a solution.    When I click the save button. I want it to throw the data from this Jlist to the other Jlist that is in the Other Jframe. "I could not activate the code block, sorry." //Método para Adi...
asked by 07.11.2016 / 12:27
1
answer

How to make a JFrame return an instance of a given object?

I have a JFrame called JFrameCadastroPessoa that has only two fields first and last name, as the image shows: JFrameCadastroPeople:publicclassJFrameCadastroPessoaextendsjavax.swing.JFrame{privatePessoapessoa=newPessoa();//codigosger...
asked by 29.06.2016 / 23:41
1
answer

JFrame by repeatedly opening twice

I'm new to programming for desktop, well, I'm doing a program in java using swing and sqlite database, I already did some things work, but after login the jframe that should open a single opens twice, how to fix this? Follow the coidigo pr...
asked by 31.12.2015 / 03:26
2
answers

Java: Connection Class Error [closed]

How to correct this error? This is preventing you from connecting to the bank .... private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // Eventoos do Botao inserir try {...
asked by 23.11.2015 / 14:48
1
answer

Several buttons (JButton) with the same function in different JPanels

I'm doing a program (using the NetBeans GUI Builder and CardLayout) with several screens (various JPanels) and all of them will have a start button, which obviously returns to the home screen. I want to leave the code cleaner, so I created a...
asked by 18.10.2015 / 03:49
1
answer

Always focus on JFrame

I need when I click on any button in my application the focus will return to JFrame . Is there any method for this? I could call the MeuFrame.requestFocus() method on every ActionPerformed , but this would take a long time....
asked by 13.07.2015 / 20:24
0
answers

Java application app [closed]

This code when pressed on the definicoes button opens a new window with an image, a line with text and also generates radio buttons, but the problem is that it creates another new window with the radio buttons and also doubles the JFra...
asked by 16.04.2015 / 14:06
1
answer

How do I add a background image to a Jframe?

I'm trying to change the background image of my JFrame, but I'm having difficulties. Here is the code: public class teste_tamagotchi extends JFrame { private JPanel contentPane; /** * Launch the application. */ public static void main(Strin...
asked by 14.10.2016 / 17:14
2
answers

In java, how do you make only one JFrame window close when you click on x, instead of all?

I'm doing a Java program with multiple windows JFrame , and I wanted it to, when I pressed the x of one of the windows, it only closed, instead of all of them.     
asked by 28.06.2015 / 03:07