Package net.laubenberger.bogatyr.view.swing

Examples of net.laubenberger.bogatyr.view.swing.Label


    gbc.gridx = 0;
    gbc.insets = new Insets(5, 10, 5, 10);

    final Panel panelContent = new Panel(new GridBagLayout());

    Label label = new Label(localizer.getValue(HelperResource.RES_LABEL_UNSCRAMBLE_INPUT));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_UNSCRAMBLE_OUTPUT));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_UNSCRAMBLE_CODEC));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_UNSCRAMBLE_PASSWORD));
    panelContent.add(label, gbc);

    // column 2
    gbc.gridx++;
    gbc.gridy = 0;
View Full Code Here


    gbc.gridx = 0;
    gbc.insets = new Insets(5, 10, 5, 10);

    final Panel panelContent = new Panel(new GridBagLayout());

    Label label = new Label(localizer.getValue(HelperResource.RES_LABEL_SCRAMBLE_INPUT));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_SCRAMBLE_OUTPUT));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_SCRAMBLE_CODEC));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_SCRAMBLE_PASSWORD));
    panelContent.add(label, gbc);

    gbc.gridy++;
    label = new Label(localizer.getValue(HelperResource.RES_LABEL_SCRAMBLE_PASSWORD_VERIFY));
    panelContent.add(label, gbc);

    // column 2
    gbc.gridx++;
    gbc.gridy = 0;
View Full Code Here

    panelWest.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));

    final Panel panelEast = new Panel(new GridLayout(0, 1));
    panelEast.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 10));

    panelWest.add(new Label(scrambler.getCallback().getScaledIcon(scrambler.getLogo())), BorderLayout.NORTH);

    panelEast.add(new Label(scrambler.getModel().getName() + HelperString.SPACE + scrambler.getModel().getVersion()));
    panelEast.add(new JXTitledSeparator(null));
    panelEast.add(new Label(HelperString.COPYRIGHT + " 2011:"));
    panelEast.add(new Label());
    panelEast.add(new Label("Stefan Laubenberger"));
    panelEast.add(new Label("Bullingerstrasse 53"));
    panelEast.add(new Label("CH-8004 Zürich"));
    panelEast.add(new Label());
    final JXHyperlink link = new JXHyperlink();
    final JXHyperlink mail = new JXHyperlink();
    try {
      link.setURI(new URI(HelperResource.URL));
      mail.setURI(new URI(HelperResource.MAIL));
    } catch (URISyntaxException ex) {
      //should never happen!
      log.error("Invalid URI", ex); //$NON-NLS-1$
    }
    panelEast.add(link);
    panelEast.add(mail);
    panelEast.add(new Label());
   
    panel.add(panelWest, BorderLayout.WEST);
    panel.add(panelEast, BorderLayout.EAST);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
View Full Code Here

    panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 5, 10));

    final Panel panelCenter = new Panel(new GridLayout(0, 2, 0, 5));
    panelCenter.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));

    panelCenter.add(new Label("Icon")); //$NON-NLS-1$
    panelCenter.add(new JLabel(test.getCallback().getScaledIcon(test.getLogo())));

    panelCenter.add(new Label("JLabel")); //$NON-NLS-1$
    panelCenter.add(new JLabel("label")); //$NON-NLS-1$

    panelCenter.add(new Label("JTextField")); //$NON-NLS-1$
    panelCenter.add(new JTextField("text field")); //$NON-NLS-1$

    panelCenter.add(new Label("JPasswordField")); //$NON-NLS-1$
    panelCenter.add(new JPasswordField("password field")); //$NON-NLS-1$

    final JProgressBar pb = new JProgressBar();
    pb.setIndeterminate(true);
    panelCenter.add(new Label("JProgressBar")); //$NON-NLS-1$
    panelCenter.add(pb);

    panelCenter.add(new Label("JButton")); //$NON-NLS-1$
    panelCenter.add(new JButton("button")); //$NON-NLS-1$

    panelCenter.add(new Label("JRadioButton")); //$NON-NLS-1$
    panelCenter.add(new JRadioButton("radio button")); //$NON-NLS-1$

    panelCenter.add(new Label("JCheckBox")); //$NON-NLS-1$
    panelCenter.add(new JCheckBox("check box")); //$NON-NLS-1$

    panelCenter.add(new Label("JSlider")); //$NON-NLS-1$
    panelCenter.add(new JSlider(0, 100));

    panelCenter.add(new Label("JSpinner")); //$NON-NLS-1$
    panelCenter.add(new JSpinner());

    panelCenter.add(new Label("JComboBox")); //$NON-NLS-1$
    panelCenter.add(new JComboBox(new String[] { "Value1", "Value2", "Value3" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    panel.add(new PaneScroll(panelCenter), BorderLayout.CENTER);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
View Full Code Here

    final Panel panelCenter = new Panel(new BorderLayout());

    panelCenter.add(new JLabel(test.getCallback().getScaledIcon(Icons.THREAD)), BorderLayout.NORTH);

    text = new Label(getClass().getName());
    panelCenter.add(text, BorderLayout.SOUTH);

    final JBusyComponent<Panel> busyComponent = new JBusyComponent<Panel>(panelCenter);
    panel.add(busyComponent, BorderLayout.CENTER);
View Full Code Here

    panelWest.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));

    final Panel panelEast = new Panel(new GridLayout(0, 1));
    panelEast.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 10));

    panelWest.add(new Label(test.getCallback().getScaledIcon(test.getLogo())), BorderLayout.NORTH);

    panelEast.add(new Label(test.getModel().getName() + HelperString.SPACE + test.getModel().getVersion()));
    panelEast.add(new JXTitledSeparator(null));
    panelEast.add(new Label(HelperString.COPYRIGHT + " 2010-2011:"));
    panelEast.add(new Label());
    panelEast.add(new Label("Stefan Laubenberger"));
    panelEast.add(new Label("Bullingerstrasse 53"));
    panelEast.add(new Label("CH-8004 Zürich"));
    panelEast.add(new Label());
    final JXHyperlink link = new JXHyperlink();
    final JXHyperlink mail = new JXHyperlink();
    try {
      link.setURI(new URI(HelperResource.URL));
      mail.setURI(new URI(HelperResource.MAIL));
    } catch (URISyntaxException ex) {
      //should never happen!
      log.error("Invalid URI", ex); //$NON-NLS-1$
    }
    panelEast.add(link);
    panelEast.add(mail);
    panelEast.add(new Label());
    panel.add(panelWest, BorderLayout.WEST);
    panel.add(panelEast, BorderLayout.EAST);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
    panel.add(group, BorderLayout.SOUTH);
View Full Code Here

    panelWest.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));
   
    final JPanel panelEast = new Panel(new GridLayout(0, 1));
    panelEast.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 10));
   
    panelWest.add(new Label(view.getController().getScaledIcon(Icon.LOGO)), BorderLayout.NORTH);
   
    panelEast.add(new Label(view.getController().getModel().getName() + HelperString.SPACE  + view.getController().getModel().getVersion()));
    panelEast.add(new JXTitledSeparator(null));
    panelEast.add(new Label(HelperString.COPYRIGHT + " 2010-2011:")); //$NON-NLS-1$
    panelEast.add(new Label());
    panelEast.add(new Label("Stefan Laubenberger")); //$NON-NLS-1$
    panelEast.add(new Label("Bullingerstrasse 53")); //$NON-NLS-1$
    panelEast.add(new Label("CH-8004 Zürich")); //$NON-NLS-1$
    panelEast.add(new Label());
    final JXHyperlink link = new JXHyperlink();
    final JXHyperlink mail = new JXHyperlink();
    try {
      link.setURI(new URI(HelperResource.URL));
//      link.setURI(view.getController().getModel().getUrl().toURI());
      mail.setURI(new URI(HelperResource.MAIL));
//      mail.setText(HelperResource.MAIL);
    } catch (URISyntaxException ex) {
      //should never happen!
      log.error("Invalid URI", ex); //$NON-NLS-1$
    }
    panelEast.add(link);
    panelEast.add(mail);
    panelEast.add(new Label());
// 
    panel.add(panelWest, BorderLayout.WEST);
    panel.add(panelEast, BorderLayout.EAST);
   
    final Group group = new Group(new Insets(0, 0, 0, 10), new Button(new ActionClose()), new Button(new ActionInfo()));
View Full Code Here

    panelWest.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));

    final Panel panelEast = new Panel(new GridLayout(0, 1));
    panelEast.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 10));

    panelWest.add(new Label(mp.getCallback().getScaledIcon(mp.getLogo())), BorderLayout.NORTH);

    panelEast.add(new Label(mp.getModel().getName() + HelperString.SPACE + mp.getModel().getVersion()));
    panelEast.add(new JXTitledSeparator(null));
    panelEast.add(new Label(HelperString.COPYRIGHT + " 2011:"));
    panelEast.add(new Label());
    panelEast.add(new Label("Stefan Laubenberger"));
    panelEast.add(new Label("Bullingerstrasse 53"));
    panelEast.add(new Label("CH-8004 Zürich"));
    panelEast.add(new Label());
    final JXHyperlink link = new JXHyperlink();
    final JXHyperlink mail = new JXHyperlink();
    try {
      link.setURI(new URI(HelperResource.URL));
      mail.setURI(new URI(HelperResource.MAIL));
    } catch (URISyntaxException ex) {
      //should never happen!
      log.error("Invalid URI", ex); //$NON-NLS-1$
    }
    panelEast.add(link);
    panelEast.add(mail);
    panelEast.add(new Label());
   
    panel.add(panelWest, BorderLayout.WEST);
    panel.add(panelEast, BorderLayout.EAST);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
View Full Code Here

  }

  private JXTaskPane createTaskPane(final Task task) {
    final JPanel panel = new Panel(new BorderLayout());

    final JLabel label = new Label(task.getText());
    panel.add(label, BorderLayout.NORTH);

    final JProgressBar pb = new ProgressBar();
    pb.setIndeterminate(true);
    panel.add(pb, BorderLayout.CENTER);
View Full Code Here

TOP

Related Classes of net.laubenberger.bogatyr.view.swing.Label

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.