Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2007

Tip: Looking for answers? Try searching our database.

design of gui

Thread view: 
raam - 17 Apr 2006 06:43 GMT
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
raam - 20 Apr 2006 04:33 GMT
Can anyone polease help.
James - 09 Jan 2007 00:16 GMT
> hi all,
> I am trying to write a GUI program which will show different images in
[quoted text clipped - 10 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.