- Object reply = JOptionPane.showInternalInputDialog(Desktop.desktop,
- "Enter url of input file", "Input alignment from URL",
- JOptionPane.QUESTION_MESSAGE, null, null, "http://www.");
+ // This construct allows us to have a wider textfield
+ // for viewing
+ JLabel label = new JLabel("Enter URL of Input File");
+ JTextField textinput = new JTextField("http://www.", 40);
+ JPanel panel = new JPanel(new BorderLayout());
+ panel.add(label, BorderLayout.NORTH);
+ panel.add(textinput, BorderLayout.SOUTH);