User Profile
Collapse
-
I always try the the java sun pages first, hence where I got the grabFocus() from looking at the inherited classes. Please do point out something specific if I've missed it but I cannot see anything on that page that helps. No doubt there will be something but I've read over the page 3 or 4 times and still cannot see anything. Clearly a gap in my knowledge of GUI coding.... -
JDialog issue
Hi all,
I've got a little problem with the JDialogs.
Housekeeping: I'm on windows xp, with the latest JRE, I'm getting no error as such.
Basically, I've got some JDialogs in my program (are you sure you wanna close? etc) but they get 'buried' under the main window if you deselect the window (either alt+tab to another prog, or even just clicking in the gray of the start bar). The following code is lifted... -
Yeah....see, that was a spur of the moment happy feelings kind of children request, just to make things absolutely clear, I will not or have not ever come close to even entertaining the idea of contemplating exploring the concept of thinking about kidnapping your children : )
But yeah, thanks again for the code helpLeave a comment:
-
sreenulanka - I owe you one / would like to request your children. It was the super call after all, but it wasnt in the program's paint method that made the difference, it was calling the super paint method from my personalised JPanels.
Thanks very much, you just saved me muchos time. Dont u hate how the most complex looking bugs are always one liners!Leave a comment:
-
Ok thanks, I will go over my code to ensure this. I'm having another day of it today and will post my code this evening. Thanks for the interest so far guys....Leave a comment:
-
Painting issues in Swing
Hey all, I've recently started coding a program for my final year project of my uni degree. I am coding in Swing and have a very odd bug.
I'm using TabbedPane for the first time, although I've used CardLayout before and there seems little difference between them. I am generating my own version of a JPanel and inserting them into the JPanel on one of the tabs of the TabbedPane, this all works fine(ish - wont go into that one now)....
No activity results to display
Show More
Leave a comment: