javax.swing.plaf.basic.BasicListUI Java Examples

The following examples show how to use javax.swing.plaf.basic.BasicListUI. 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 File: JBList.java    From consulo with 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 File: ComboBoxButtonImpl.java    From consulo with 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 File: DarkListUIBridge.java    From darklaf with 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 File: MultiColumnListUI.java    From pdfxtk with 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();
}