Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #602
| From | "James" <james@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: design of gui |
| Message-ID | <45a2de42$0$4889$4c368faf@roadrunner.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1145252626.258741.222850@j33g2000cwa.googlegroups.com> |
| Date | 2011-04-27 15:28 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui raam wrote: > hi all, > I am trying to write a GUI program which will show different images in > the background and foreground.The images shown depend on the user > inputs.I am presently using JFRames, JPanels and all to do > these.Somtimes the images are to be very frequently changed and > sometimes we require to toggle between some images.I am using JFrames > and Swings components .We have a JDesktop pane in which the background > and foregroud images are shown.The desktop pane knows which screen is > present at the moment and it has a button to shift between previouss > and next screens.I request you to please tell whether this is the right > approach or should I use applets and threads to avoid any difficulties > in future.If you feel this is a stupid question please leave it.I > request you to please help. > Raam > What you might find helpful is JLayeredPane. Put each image in a layer, and rotate the z-order of the layers. It also has convenience methods like: * moveToBack(Component c) * moveToFront(Component c) * add(component c,int index)) * remove(int index) * setLayer(Component c, int layer). For more info see: http://java.sun.com/j2se/1.5.0/docs/api/index.html -AND- http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next | Find similar
Re: design of gui "James" <james@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
csiph-web