/* boot_notification.bsh - version 1.1 Claudio Vicari 18/04/2005 Update 12 Nov. 2007: fixed a problem in startThread. The bsh interpreter could not find the method run, declaring it before the call to Thread.start() fixed the problem This startup script displays a small dialog for a little while, in order to notify the user that jedit has started. I use it as a replacement for the plain splash screen, because it starts only at the very end of the startup process. Useful when you are used to start jedit in background at logon (-background -nogui options), in order to access the editor quickly later on. */ startThread() { void run() { Toolkit.getDefaultToolkit().beep(); Thread.currentThread().sleep(4000); note.dispose(); } new Thread(this).start(); } JWindow note = new JWindow(); note.setAlwaysOnTop(true); note.setBackground( Color.WHITE ); JPanel jp = new JPanel(); jp.setBorder( BorderFactory.createLineBorder(Color.BLACK) ); jp.setBackground( Color.WHITE ); jp.add( new JLabel("jEdit successfully started") ); note.getContentPane().add( jp ); note.pack(); DisplayMode dm = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayMode(); int x = dm.getWidth()-jp.getWidth()-10; int y = dm.getHeight()-note.getHeight()-10; note.setLocation(x,y); note.setVisible(true); startThread();