This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
JLabel numberLabel;
int selected = -1;
boolean contentNumbered;
int taWidth;
/**
* @param contentNumbered Whether content will be numbered
ta.setFont(UIManager.getFont("Label.font")); // NOI18N
ta.getAccessibleContext().setAccessibleDescription(""); // NOI18N
int taWidth = wrappingWidth - 12 - 12;
taWidth = wrappingWidth - 12 - 12;
numberLabel = new JLabel() {
protected void paintComponent(Graphics g) {
numberLabel.setText(Integer.toString(index + 1) + "."); // NOI18N
}
// #21322: on JDK1.4 wrapping width is cleared between two rendering runs
Insets taInsets = ta.getInsets();
ta.setSize(taWidth,
taInsets.top + taInsets.bottom + 1);
ta.setText((String)value);
return this;