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?
Contact
Facebook
Twitter
RSS














