Computer Science Canada Make A Window Active |
Author: | whoareyou [ Thu Jun 21, 2012 1:51 pm ] |
Post subject: | Make A Window Active |
I am using the HSA Console, and in one of my programs, I am creating two Console objects, both of which require input at a certain time. However, it is a pain to use the mouse to click on the other Console then get the input, and go back to the other Console. I was wondering if there is some kind of code that allows you to make a window come to the front and make it active in Java? |
Author: | DemonWasp [ Thu Jun 21, 2012 6:54 pm ] |
Post subject: | RE:Make A Window Active |
Not with HSA's Console class. With the standard Java classes (AWT or Swing) and any other UI toolkit out there (SWT, etc), yes. It's either called "bring to front" or "give focus". Neither appears here: http://www.scribd.com/doc/65234478/78/Appendix-C-The-HSA-Console-Class |