Variable « JFrame « Java Swing Q&A





1. Java Swing: How to access variables in a 2nd frame from the first frame?    stackoverflow.com

I'm programming a desktop application in JAVA usin NetBeans. My question is this: 1st: I have a Jframe that is the principal frame of the application. 2nd: In some moment I want to ...

2. Exchange variable between two jFrames    stackoverflow.com

I have 3 java files. DBConn - This Class conencts to the database and execute query. UserLogin - This jFrame will take username and password and compare with "users" table ...

3. Assigning a JFrame to another JFrame    stackoverflow.com

I am trying to make the current JFrame become a JFrame that is stored in memory. At the moment I am correctly reading the JFrame from memory and I can get ...

4. unlock variable change in Swing GUI Forms    forums.netbeans.org

Please tell how disable Netbeans control of variables, example // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; static javax.swing.JList jList1; private javax.swing.JPanel jPanel1; ... private javax.swing.JTabbedPane jTabbedPane1; // End ...

5. (jframe) get a variable out of array list    java-forums.org

code of main class: Java Code: //name //Shooter Game //Main Class import javax.swing.*; import java.awt.*; import java.util.*; import java.awt.event.*; public class Shooter extends JFrame implements KeyListener{ Image img; Graphics dbi; boolean u,d,w, s,l,r; int S,E; int lengte; Player p1= new Player(5,150,46,18,Color.GREEN,"LEFT.gif"); Player p2= new Player(300,30,46,18,Color.RED,"RIGHT.gif"); ArrayListb=new ArrayList(); ArrayListgt=new ArrayList(); public Shooter(){ setTitle("Shooter"); setSize(600,400); setResizable(false); setBackground(Color.BLACK); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); addKeyListener(this); u=d=w=s=false; S=E=0; lengte=20; setVisible(true); ...

6. JFrames + Returning a Variable... Beginner's Logical Error    forums.oracle.com

Hi masijade Thanks for your help, I appreciate it. I've never been exposed to WindowListener before, so pardon my stupid questions... What about my ActionListener stuff? When the OK button is pressed, the ActionListener is used, I use getText()... I don't ever close the window unless the user manually does so with the buttons in the corner of the window. Could ...

7. How to know the nos. and variable name from Jframe ?    forums.oracle.com

Hello Everyone, I have just started java programming. I have one form (using jframe) and there are nos. of components like text field, radio buttons, list box, buttons etc.). I want to know nos. and type of components (text field, radio buttons, button etc..) and variable name of these components ? Is there any way class / method or technique for ...