|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
How to access GUI Component?Hi,
I am new to JUnit and i am using the JFCUnit for the swing application. I have an application in which i have various gui components but these controls are defined as local in the method related to the control. How do i access these local components for writing the test case. Please suggest me. Thanks Mohit |
|
|
|
|
|
Re: How to access GUI Component?I don't know JFCUnit .. but the general way to do what you're saying is a combination of a) a method in java.awt.Frame that gives you a list of all the active Frame's b) a method in Container that gives you the child components I don't remember either method name right now .. but between them you can traverse the tree of all current Component objects. - David On Mar 13, 2007, at 2:09 AM, mohitkk wrote: > Hi, > > I am new to JUnit and i am using the JFCUnit for the swing > application. I have an application in which i have various gui > components but these controls are defined as local in the method > related to the control. How do i access these local components for > writing the test case. Please suggest me. > > Thanks > Mohit > > > > |
| Free embeddable forum powered by Nabble | Forum Help |