git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@6233 ebf7c1c2-ba36-0410-9fe8-c592906822b4

This commit is contained in:
coalado 2009-06-15 09:45:41 +00:00
parent 9e6ead948a
commit 781e8cd9f7
3 changed files with 8 additions and 4 deletions

View File

@ -739,6 +739,8 @@ public class SimpleGUI extends JXFrame implements UIInterface, WindowListener {
case ControlEvent.CONTROL_INIT_COMPLETE:
// setTitle(JDUtilities.getJDTitle());
logger.info("Init complete");
SimpleGUI.this.setWaiting(false);
SimpleGUI.this.setEnabled(true);
if (SimpleGuiConstants.GUI_CONFIG.getBooleanProperty(SimpleGuiConstants.PARAM_START_DOWNLOADS_AFTER_START, false)) {

View File

@ -61,8 +61,8 @@ public class SimpleUserIO extends UserIO {
// System.out.println("result: " + res);
//test this
UserIO.getInstance().requestConfirmDialog(UserIO.NO_CANCEL_OPTION, "JD Update", "New Update available! The following restart may take afew minutes. This is not a crash! Just wait.",null, null, null);
// UserIO.getInstance().requestInputDialog(0, "Titl", "message", "default", null, null, null);
// UserIO.getInstance().requestConfirmDialog(UserIO.NO_CANCEL_OPTION, "JD Update", "New Update available! The following restart may take afew minutes. This is not a crash! Just wait.",null, null, null);
// UserIO.getInstance().requestConfirmDialog(UserIO.NO_CANCEL_OPTION, JDLocale.L("gui.cnl.install.error.title", "Click'n'Load Installation"), JDLocale.LF("gui.cnl.install.error.message", "Installation of CLick'n'Load failed. Try these alternatives:\r\n * Start JDownloader as Admin.\r\n * Try to execute %s manually.\r\n * Open Configuration->General->Click'n'load-> [Install].\r\nFor details, visit http://jdownloader.org/click-n-load.", JDUtilities.getResourceFile("tmp/installcnl.reg").getAbsolutePath()), JDTheme.II("gui.clicknload", 48, 48), null, null);
}

View File

@ -27,7 +27,9 @@ import javax.swing.ImageIcon;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.text.JTextComponent;
import jd.gui.UserIO;
import jd.nutils.JDFlags;
@ -38,7 +40,7 @@ public class InputDialog extends AbstractDialog implements KeyListener, MouseLis
private String defaultMessage;
private String message;
private JTextPane messageArea;
private JTextPane input;
private JTextComponent input;
public InputDialog(int flag, String title, String message, String defaultMessage, ImageIcon icon, String okOption, String cancelOption) {
super(flag, title, icon, okOption, cancelOption);
@ -75,7 +77,7 @@ public class InputDialog extends AbstractDialog implements KeyListener, MouseLis
sp.setBounds(0, 0, 450, 600);
sp.setMaximumSize(new Dimension(450, 600));
} else {
input = new JTextPane();
input = new JTextField();
input.setBorder(BorderFactory.createEtchedBorder());
input.setText(this.defaultMessage);
input.addKeyListener(this);