Hi. I am trying to create a stand alone app but stuck somewhere.
When i click on a JCheckBox, it opens up another frame window. in this window if i click cancel then the JCheckBox in the previous frame is not checked. but if i click OK then this JCheckBox should be checked, but its not hapening. I have successfully done the cancel part but facing problems with the OK part.
Please help me out.
amitbhanot 0 Newbie Poster
Recommended Answers
Jump to PostJava doesn't have any Swings. You find those in playgrounds with kids using them. Now, if you mean the Java Swing (note no s on the end) API, then say that.
You might want to post the relevant parts of your code. And, I hope, you are using a …
Jump to PostWell at least you tried. Those "*" don't belong in the code tags and cut-n-pasting the unformatted code from an earlier post, rather than pasting the original code, doesn't help, as you can see above. So, I went back and added code tags to the "original" code post, as well.
Jump to PostIn this line
QueryBuilderDemo.jc.setSelected(true);
You need an actual instance of QueryBuilderDemo, not the Class.
All 10 Replies
masijade 1,351 Industrious Poster Team Colleague Featured Poster
gojiri 0 Newbie Poster
amitbhanot 0 Newbie Poster
hanvyj 7 Posting Whiz in Training
amitbhanot 0 Newbie Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
amitbhanot 0 Newbie Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
amitbhanot 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.