Text « JFrame « Java Swing Q&A





1. add text to another frame    stackoverflow.com

how can i add text "shutdown " to textfield1 and exit frame5 when i press button22 in frame4 ????

  JButton jButton22 = new JButton();
  JButton jButton23 = new JButton();
 ...

2. Creating another window for just displaying text + swing    stackoverflow.com

I currently have a window frame with panels inside and am using it to run my program. Now I am in a need to display text along with running of the ...

4. Jframe - Text disappears - not code related!    forums.netbeans.org

Hi ok, I am going insane.. I am creating a simple Jframe and in the design it looks like this: I've worked with the form for a while, and it's displayed ...

5. JFrame not displaying text.    coderanch.com

6. Hi! lil help? paintcomponent() and text displayed in same window?    java-forums.org

Hi, I'm not great at programming yet, so i'll cut to the chase i have a box class that takes in height, length, width and calculates surface area and volume. I just wanted to show off and draw the cubes and boxes and display their dimensions in a window. I'm pretty sure you can display text in a JPanel but i ...

7. Send a text into another JFrame    java-forums.org

You need some way for them to access each other. The easiest way to do this is to give them each a reference to the other type as an instance variable. A should have a instance variable for B, and B should have an instance variable for B, then when you click on A's button it can manipulate it's reference to ...

8. [ASK] get text value from other JFrame    java-forums.org

class ObjA { private String data = "hello"; public String getData() { return data; } } class ObjB { private String moreData; public void setMoreData(String s) { moreData = s; } public String getMoreData() { return moreData; } public static void main(String[] args) { ObjA aaa = new ObjA(); ObjB bbb = new ObjB(); bbb.setMoreData(aaa.getData()); System.out.println(bbb.getMoreData()); } }