Java Code Examples for javax.swing.plaf.basic.BasicListUI

The following examples show how to use javax.swing.plaf.basic.BasicListUI. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: consulo   Source File: JBList.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void setUI(ListUI ui) {
  if (ui != null && Registry.is("ide.wide.selection.list.ui")) {
    Class<? extends ListUI> type = ui.getClass();
    if (type == BasicListUI.class) {
      ui = new WideSelectionListUI();
    }
  }
  super.setUI(ui);
}
 
Example 2
Source Project: consulo   Source File: ComboBoxButtonImpl.java    License: Apache License 2.0 5 votes vote down vote up
HackComboBoxPopup(ComboBoxButtonImpl button) {
  myButton = button;
  // some ui register listeners to JList of popup
  // just return dummy instance
  // also override default UI since, some ui like Aqua can just skip list if is not aqua list ui
  myDummyList.setUI(new BasicListUI());
}
 
Example 3
Source Project: darklaf   Source File: DarkListUIBridge.java    License: MIT License 2 votes vote down vote up
/**
 * Returns a new instance of {@code BasicListUI}. {@code BasicListUI} delegates are allocated one per {@code
 * JList}*.
 *
 * @param  list a component
 * @return      a new {@code ListUI} implementation for the Windows look and feel.
 */
public static ComponentUI createUI(final JComponent list) {
    return new BasicListUI();
}
 
Example 4
Source Project: pdfxtk   Source File: MultiColumnListUI.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Returns a new instance of BasicListUI.  BasicListUI delegates are
 * allocated one per JList.
 *
 * @return A new ListUI implementation for the Windows look and feel.
 */
public static ComponentUI createUI(JComponent list) {
  return new BasicListUI();
}