posted 15 years ago
Hi everybody,
Can somebody tell me, how to put a logo(Image) on a JDialog with its title name. Here is my code i want to put a logo(Image) before the title name of my dialog viz is ("my dialog")... plzzz can any body help me out.
public void Dialog2()
{
JDialog dialog = new JDialog(frame);
dialog.setTitle("my dialog");
dialog.setModal(true);
dialog.setResizable(false);
JPanel passPanel = getPassPanel();
dialog.add(passPanel, BorderLayout.NORTH);
JPanel buttonsPanel = getButtonsPanel();
dialog.add(buttonsPanel, BorderLayout.CENTER);
dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
dialog.setSize(300,130);
dialog.setVisible(true);
dialog.setLocationRelativeTo(frame);
}
Thanks in advance
Karan Galhotra