mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
25 lines
519 B
Java
25 lines
519 B
Java
import javax.swing.*;
|
|
import java.awt.*;
|
|
|
|
public class Bar {
|
|
|
|
static class CellWrapper {
|
|
public boolean isSeparator() {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
static class MyRenderer extends DefaultListCellRenderer {
|
|
public Component getListCellRendererComponent(JList list, Object value, int index, boolean s, boolean focus) {
|
|
assert value instanceof CellWrapper;
|
|
|
|
((CellWrapper) value).isSeparator()<caret>
|
|
|
|
mySelected = isSelected;
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
|