Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicListUI


    results = new JList();
    results.setSelectionMode(DefaultListSelectionModel.SINGLE_SELECTION);
//    results.setVisibleRowCount(15);
    resultsPane = new JScrollPane(results);
    if (Environment.isNewLook()) // The PLAF can override the custom renderer. This avoids that
      results.setUI(new BasicListUI());

    match = new JTextField();
    match.setToolTipText(Messages.getString("LookupDialog.EnterPartOfTheName")); //$NON-NLS-1$
    find = new JButton(Messages.getString("LookupDialog.Find")); //$NON-NLS-1$
    find.addActionListener(new ActionListener() {
View Full Code Here


        if (!Environment.isNewLook())
          super.updateUI();
      }
    };
    if (Environment.isNewLook()) // The PLAF can override the custom renderer. This avoids that
      list.setUI(new BasicListUI());
    list.setSelectionMode(DefaultListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    list.setCellRenderer( new ListRenderer());
    setListFields(list,cost);
    if (!simple) {
      list.setSelectedIndex(0); // start off with first choice selected     
View Full Code Here

    results = new JList();
    results.setSelectionMode(DefaultListSelectionModel.SINGLE_SELECTION);
//    results.setVisibleRowCount(15);
    resultsPane = new JScrollPane(results);
    if (Environment.isNewLook()) // The PLAF can override the custom renderer. This avoids that
      results.setUI(new BasicListUI());

    match = new JTextField();
    match.setToolTipText(Messages.getString("LookupDialog.EnterPartOfTheName")); //$NON-NLS-1$
    find = new JButton(Messages.getString("LookupDialog.Find")); //$NON-NLS-1$
    find.addActionListener(new ActionListener() {
View Full Code Here

        popupMenu.add(unselectItem);
    }

    public static void computeListSize(final JList list) {
        if (list.getUI() instanceof BasicListUI) {
            final BasicListUI ui = (BasicListUI) list.getUI();

            try {
                final Method method = BasicListUI.class.getDeclaredMethod("updateLayoutState");
                method.setAccessible(true);
                method.invoke(ui);
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicListUI

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.