-
images in popup windows
ok, how exactly would i make a popup window (JOptionPane) that contains a custom image, and only a ok box?
if i make the image the icon, it is shrunken way down, and placed in the side of the box, i want the image to be compleatly centered in the window, and below it only have the ok box, which would get rid of the window
-
make your own pop-up box and just let it extend JDialog. That way, you can make it modal if needed, but you have maximum control over how it will end up.
-
ok well actoually i used JOptionPane.showMessageDialog(null,"","",0,new ImageIcon(image));
this correctly creates the window with the image in it, with an ok button
but the problem is
that it calls paint after it executes
setIgnoreRepaint(false) does not stop this from happening, could anybody explain how 2 stop the JOptionPane from calling repaint after it is closed?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks