Results 1 to 1 of 1
Thread: Making an aplication on top
- 09-25-2010, 12:28 AM #1
Member
- Join Date
- Sep 2010
- Posts
- 7
- Rep Power
- 0
Making an aplication on top
I have a program that when you run it it freezes the desktop and is supposed to open a password prompt. However, the prompt opens up under the frozen desktop. Here is the code to freeze the desktop:
As you see it takes a screen shot and covers the screen. How do I force my other program on top of this? I have a third program that controlls all of the classes.Java Code:Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Rectangle screenRectangle = new Rectangle(screenSize); Robot robot = new Robot(); BufferedImage image = robot.createScreenCapture(screenRectangle); ImageIO.write(image, "png", new File("ScreenShot.png")); BufferedImage screen = ImageIO.read(new File("ScreenShot.png")); ImageIcon icon = new ImageIcon(screen); JLabel label = new JLabel(icon, JLabel.CENTER); JOptionPane.showMessageDialog(null, label, "icon", -1);
ThanksJava Code:public class Run { public static void main(String[] args) throws Exception { freezeScreen.run(); checkPassword.run(); } }
Similar Threads
-
Need help making a GUI
By DrKilljoy in forum New To JavaReplies: 21Last Post: 07-15-2010, 03:44 AM -
Writing a hybrid aplication
By bassfero in forum Java AppletsReplies: 8Last Post: 07-14-2010, 04:33 PM -
Keylistenr doesn't work after pressing any button from main aplication
By darkkis in forum New To JavaReplies: 6Last Post: 12-23-2009, 09:10 AM -
Hibernate aplication Problem
By Prashant.surwade in forum Advanced JavaReplies: 6Last Post: 09-18-2009, 10:32 AM -
Need help making .jar
By yoodidoo in forum EclipseReplies: 4Last Post: 08-03-2009, 08:57 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks