TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dinesh Santhalingam
NA
737
368.7k
How to set the J frame into front?
Apr 21 2017 12:14 AM
I am using JDialog swing component to develop a gui.I have a button in my Jdialog.
I set the JDialog setAlwaysontop is true.When user clicks a button then a messagebox will shown.Here what my problem is ,Jdialog is open but when i click the button the messagebox wont displaying.But it runs in background.
public AboutDialog(JPanel parent) {
setAlwaysOnTop(true);
getContentPane().add(parent, BorderLayout.SOUTH);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setModal(true);
setResizable(false);
setTitle("Editor");
setIconImage(iPrintManager);
pack();
setVisible(true);
}
The jframe:
final JFrame
d
=
new
JFrame();
JOptionPane.showMessageDialog(d,"Successfully modified","Alert",JOptionPane.INFORMATION_MESSAGE);
Help me to solve my issue.
Reply
Answers (
0
)
I want to display the records frm DB on html page
hibernate in cache topic