Login Register






Need help with SwingUtilities & JComponent filter_list
Author
Message
Need help with SwingUtilities & JComponent #1
Hello HC,

I need some help understanding the concepts of SwingUtilities or JComponent. I am having trouble finding application or how to use them.

Have a look here :-
http://docs.oracle.com/javase/7/docs/api...ctangle%29

there are so many functions I am unable to understand how can I use them in my Swing Apps or in Applets using JApplet.

Also what is the utilities of the Component or JComponent class, I mean to say how to use them and in what manner. I want to know these core components of Java and I am having trouble. It will be very good if I can get some applications or codes that clears my concepts about these. Also, I have already read about these in documentation but I didn't understood well.

Any help would be great!


Thank you,
Sincerely,
Psycho_Coder
[Image: OilyCostlyEwe.gif]


RE: Need help with SwingUtilities & JComponent #2
JComponent: http://docs.oracle.com/javase/tutorial/u...onent.html

Actually there is not much to know about these.
Most used method of SwingUtilities is invokeLater() or invokeAndWait(). You can read about these here: http://javarevisited.blogspot.de/2011/09...ample.html
Other than that it is just a Utility class, meaning a collection of useful methods for various problems that don't fit anywhere else. Except for the two methods above I rarely needed them, though.

JComponent is an Interface that is implemented by all Swing components. Not more not less.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]


RE: Need help with SwingUtilities & JComponent #3
(07-29-2013, 07:38 AM)Deque Wrote: JComponent: http://docs.oracle.com/javase/tutorial/u...onent.html

Actually there is not much to know about these.
Most used method of SwingUtilities is invokeLater() or invokeAndWait(). You can read about these here: http://javarevisited.blogspot.de/2011/09...ample.html
Other than that it is just a Utility class, meaning a collection of useful methods for various problems that don't fit anywhere else. Except for the two methods above I rarely needed them, though.

JComponent is an Interface that is implemented by all Swing components. Not more not less.

I have read the part from the tutorial already. The second link looks very good. Thank you for that. I will read them now.
[Image: OilyCostlyEwe.gif]