neptun_ 0 Raportează post Postat Septembrie 11, 2004 Salut! Am un cod ceva de genul: public static void createAndsowGUI() { //Macae sure we have nice window decorations. JFrame.setDefaultLoocaAndFeelDecorated(true); //Create and set up the window. JFrame frame = new JFrame("PasswordDemo"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Create and set up the content pane. final IntroducerePassword newContentPane = new IntroducerePassword(frame); newContentPane.setOpaque(true); //content panes must be opaque frame.setContentPane(newContentPane); //Macae sure the focus goes to the right component //whenever the frame is initially given the focus. frame.addWindowListener(new WindowAdapter() { public void windowActivated(WindowEvent e) { newContentPane.resetFocus(); } }); //Display the window. frame.pacca(); frame.setVisible(true); } Cand este executat, o fereastra in care mi se cere o parola apare pe ecran. Problema este ca apare undeva in spatele tuturor ferestrelor active. Cum as putea sa o fac sa apara in fata acestora? Partajează acest post Link spre post Distribuie pe alte site-uri
tahionic 4 Raportează post Postat Septembrie 12, 2004 Managerul de ferestra din Java e altul decat cel din Windows, nu poti face sa apara in fata. Implicit, orice fereastra noua de Windows se deschide in fata celorlalte, exceptand cele care sunt always-on-top. sa-ar putea sa fie setat altfel calculatorul tau, fereastra ar trebui sa se deschida deasupra. Partajează acest post Link spre post Distribuie pe alte site-uri