public static void main(String[] args) { new DataConverter().setVisible(true); }
@Override public void run() { dispose(); } }.start();
@Override public void stateChanged(ChangeEvent e) { if (e.getSource() == series) { swap.setSeries(((Integer) series.getValue()).intValue() - 1); updateLabels(input.getText()); } }
pane.setBorder(new EmptyBorder(5, 5, 5, 5)); pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS)); setContentPane(pane); input.setEditable(false); row1.add(input); limitHeight(input); output.setEditable(false); row2.add(output); limitHeight(output); row6.add(version); setDefaultCloseOperation(DISPOSE_ON_CLOSE); setLocation(100, 100); pack();
seriesRow.add(seriesLabel); seriesRow.add(series); pack(); pack(); pack(); catch (IOException exc) { LOGGER.info("", exc); } updateLabels(pattern);
String out = output.getText(); if (in.trim().equals("")) { msg("Please specify input files."); convert.setEnabled(true); progress.setString(""); String err = exc.getMessage(); if (err == null) err = exc.getClass().getName(); msg("Sorry, an error occurred: " + err); progress.setString(""); progress.setValue(0); String err = exc.getMessage(); if (err == null) err = exc.getClass().getName(); msg("Sorry, an error occurred: " + err); progress.setString(""); progress.setValue(0);
pane.setBorder(new EmptyBorder(5, 5, 5, 5)); pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS)); setContentPane(pane); input.setEditable(false); row1.add(input); limitHeight(input); output.setEditable(false); row2.add(output); limitHeight(output); row6.add(version); setDefaultCloseOperation(DISPOSE_ON_CLOSE); setLocation(100, 100); pack();
seriesRow.add(seriesLabel); seriesRow.add(series); pack(); pack(); pack(); catch (IOException exc) { LOGGER.info("", exc); } updateLabels(pattern);
String out = output.getText(); if (in.trim().equals("")) { msg("Please specify input files."); convert.setEnabled(true); progress.setString(""); String err = exc.getMessage(); if (err == null) err = exc.getClass().getName(); msg("Sorry, an error occurred: " + err); progress.setString(""); progress.setValue(0); String err = exc.getMessage(); if (err == null) err = exc.getClass().getName(); msg("Sorry, an error occurred: " + err); progress.setString(""); progress.setValue(0);
public static void main(String[] args) { new DataConverter().setVisible(true); }
@Override public void stateChanged(ChangeEvent e) { if (e.getSource() == series) { swap.setSeries(((Integer) series.getValue()).intValue() - 1); updateLabels(input.getText()); } }
@Override public void run() { dispose(); } }.start();