Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help needed in understanding Swing components!!  RSS feed

 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok!!
Here is my problem i am familiar with swing components,i can say i have a got basic knowledge about them but i am not that familiar with the methods summary of each component i tried reading on net e-books of swing components but still while using them in my java program i am unable to implement them because may be i am not familiar with flow of my program that is we use Init() method in which we call other methods,linking forms is like ........

can say if i try to work on a single form adding JPanel ,JFrame,JButton etc is easy for me but if i try to work on a large project it becomes difficult for me to link the output of one frame to other..........i am unable to understnd the flow of program than :roll:

i want some help regarding this ,which books i must study to have a clear understanding of swing components any links if possible,so that i could work on java projects later........
any help will be realy appreciated...........Thanks in advance
 
David Buzatto
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well...

If want to make a communication with two or more frames, etc, you can use a reference of one of them inside the otherone, and to access the data, you can create acessor methods that returns the data you need.

Lets suppose,


JFrame1 has one JTextField.
JFrame2 has a JLabel that needs to show the value of the JTextField defined on JFrame1



This is only a EXTREME SIMPLE and not well designed example of the idea that you can use. You can create a component that makes this linkage using some data structures...

Bye!
[ July 13, 2007: Message edited by: David Buzatto ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!