yakartinka.ru

How to put image in joptionpane not working

Home » Category "Fx trading"

How to put image in joptionpane not working


How to put image in joptionpane not working


Most Dialogs present an error message or warning to a user, but Dialogs can present images, directory trees, or just about anything compatible with the main Swing Application that manages them.For convenience, several Swing component classes can directly instantiate and display dialogs. To create simple, standard dialogs, you use theJOptionPane class. The ProgressMonitor class can put up a dialog that shows the progress of an operation.

Two other classes, JColorChooser and JFileChooser, also supply standard dialogs. To bring up a print dialog, you can use thePrinting API. To create a custom dialog, use theJDialog class directly.The code for simple dialogs can be minimal. For example, here is an informational dialog:Here is the code that creates and shows it. When the User enters the password and click on Ok button the password will be encrypted and stored in JTextArea.

And this is working fine. But I want to add a custom logo in the showConfirmDialog and showMessageDialog popup. Attention, Internet Explorer UserAnnouncement: Oracle Community has discontinued support for Internet Explorer 7 and below.In order to provide the best platform for continued innovation, Oracle Community no longer supports Internet Explorer 7.Oracle Community will not function with this version of Internet Explorer.




How to put image in joptionpane not working

Image joptionpane in how working not put to

Image joptionpane in how working not put to



Category: Fx trading

Add a comment

Your e-mail will not be published. Required fields are marked *