Examples of PercentLayout


Examples of com.l2fprod.common.swing.PercentLayout

    JLabel label;

    ResourceBundle bundle =
      ResourceBundle.getBundle(FontChooserUI.class.getName() + "RB");

    fontPanel = new JPanel(new PercentLayout(PercentLayout.VERTICAL, 2));
    fontPanel.add(
      label = new JLabel(bundle.getString("FontChooserUI.fontLabel")));
    fontPanel.add(fontField = new JTextField(25));
    fontField.setEditable(false);
    fontPanel.add(new JScrollPane(fontList = new JList()), "*");
    label.setLabelFor(fontList);
    label.setDisplayedMnemonic(
      bundle.getString("FontChooserUI.fontLabel.mnemonic").charAt(0));
    fontList.setVisibleRowCount(7);
    fontList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

    String[] fontFamilies = chooser.getModel().getFontFamilies(null);
    fontList.setListData(fontFamilies);

    fontSizePanel = new JPanel(new PercentLayout(PercentLayout.VERTICAL, 2));

    fontSizePanel.add(
      label = new JLabel(bundle.getString("FontChooserUI.styleLabel")));
    fontSizePanel.add(
      boldCheck = new JCheckBox(bundle.getString("FontChooserUI.style.bold")));
View Full Code Here

Examples of com.l2fprod.common.swing.PercentLayout

  protected Color gradientEnd;

  public void installUI(JComponent c) {
    super.installUI(c);
    taskPane = (JTaskPane)c;
    taskPane.setLayout(new PercentLayout(PercentLayout.VERTICAL, 14));
    taskPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));
    taskPane.setOpaque(true);

    if (taskPane.getBackground() == null
      || taskPane.getBackground() instanceof ColorUIResource) {
View Full Code Here

Examples of com.l2fprod.common.swing.PercentLayout

    return new ChangeListener();
  }

  protected void updateLayout() {
    if (bar.getOrientation() == JButtonBar.HORIZONTAL) {
      bar.setLayout(new PercentLayout(PercentLayout.HORIZONTAL, 2));
    } else {
      bar.setLayout(new PercentLayout(PercentLayout.VERTICAL, 2));
    }
  }
View Full Code Here

Examples of versusSNP.util.swing.PercentLayout

    noteArea.setFont(font);
    seqArea.setPreferredSize(Size.panel_seq_seq);
    noteArea.setPreferredSize(Size.panel_seq_note);
    JScrollPane scroll1 = new JScrollPane(seqArea,  JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    JScrollPane scroll2 = new JScrollPane(noteArea, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    setLayout(new PercentLayout(PercentLayout.HORIZONTAL, 2));
    add(scroll1, "60%");
    add(scroll2, "40%");
  }
View Full Code Here

Examples of versusSNP.util.swing.PercentLayout

    btnApply = new JButton(UICaption.dialog_option_apply);
    //btnApply.setEnabled(false);
    btnOK.addActionListener(this);
    btnCancel.addActionListener(this);
    btnApply.addActionListener(this);
    setLayout(new PercentLayout(PercentLayout.VERTICAL,2));
    alignTab = new AlignTab();
    pathTab = new PathTab();
    tabbedPane.addTab(UICaption.option_panel_caption_align, alignTab);
    tabbedPane.addTab(UICaption.option_panel_caption_path, pathTab);
    lowerPanel.add(btnOK);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.