wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JFrame or JDialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame or JDialog" Watch "JFrame or JDialog" New topic
Author

JFrame or JDialog

Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

i want to add a fade feature to my Paint application. i want a JMenuItem called Fade that pops up either a dialog or frame that has a JSlider and a JButton. which should i use?


SCJP
Visit my download page
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

If you want to pop up a window which asks the user to enter some information, then a JDialog is the answer. However if you want this window to be more permanent than that, and if you want it to stick around while the user does things with your main JFrame, then a JFrame is the answer. Or maybe something else: here's the tutorial about Using Top-Level Containers.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JFrame or JDialog
 
Similar Threads
Is it possible to fade in a new window?
WA #2 ..... word association
About fading text in regular System.out.println form
How to make an image to appear and fade gradually when a web page is opened?
Always stay on top (JFrame)