Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Duplicate :
|
|
Relates :
|
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication1; import javax.swing.JDialog; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextArea; /** * * @author jirka */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { JPanel p = new JPanel(); JTextArea ta = new JTextArea("Settings created by a previous version of the IDE were found on your system at /home/jirka/. Do you want to import them?"); ta.setLineWrap(true); JOptionPane op = new JOptionPane ( ta, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION ); JDialog d = op.createDialog(null, "Confirm Import Settings"); d.setVisible (true); System.exit(0); } } Filed alsa as NetBeans P2 issue: https://netbeans.org/bugzilla/show_bug.cgi?id=179525
|