aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Restore the swing components with its value unchanged Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Restore the swing components with its value unchanged" Watch "Restore the swing components with its value unchanged" New topic
Author

Restore the swing components with its value unchanged

Carl John
Ranch Hand

Joined: Jun 14, 2010
Posts: 47

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..!


CJohn
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10522
    
    9

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

Or use key bindings
http://download.oracle.com/javase/tutorial/uiswing/misc/keybinding.html


luck, db
There are no new questions, but there may be new answers.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4658
    
    5

And please BeForthrightWhenCrossPostingToOtherSites
http://forums.oracle.com/forums/thread.jspa?threadID=2197076
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restore the swing components with its value unchanged