This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restore the swing components with its value unchanged

 
Carl John
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I'm developing a POS application in java swing. In my application, i have 3 different types of Billing screens (they're Jframes..) with their Jcomponents were different .But what i'm exactly need is to have a "Screen switch-over" option (like Alt+Tab in Windows XP) so that while i'm typing items for a bill in Screen-1 , i can switch over immediately by simple keyboard strokes to Screen-2 and make a bill in screen 2 and switch again to my Screen-1 so that my contents in Screen-1 remained unchanged....

Please guide me to do this. Thanks in advance..!
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possible way is to have Menus with accelerators.
Ctrl+1 switches to Window 1 and so forth.
More on menus and accelerators here http://download.oracle.com/javase/tutorial/uiswing/components/menu.html
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or use key bindings
http://download.oracle.com/javase/tutorial/uiswing/misc/keybinding.html
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please BeForthrightWhenCrossPostingToOtherSites
http://forums.oracle.com/forums/thread.jspa?threadID=2197076
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic