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.
Some of my columns are integers (Integer.TYPE), yet the labels in the treetable view are not right-aligned. This usually works correctly with JTable; here's a fragment from JTable.java: /** * Default Renderers **/ static class NumberRenderer extends DefaultTableCellRenderer { public NumberRenderer() { super(); setHorizontalAlignment(JLabel.RIGHT); } } I'm guessing TreeTable does something special with cell renderers (to use NetBeans' property editors perhaps?).
akemr is responsible for TreeTableView.
Yes, TreeTableView uses property editor. It will be nice, if SheetButton can be right-aligned for numbers IMO. Reassign to Jirka.
PropertySheet uses IntergerEditor for numbers, this editor doesn't render value in SheetButton, some extra functionality should be added. For me it looks as enhancement with UI impact because change a layout of property sheet. It should be allow for next release. I reassigning to Jano Rojcek to discuss it on nbui firstly. If I'm wrong set type and assign back.
"I'm reassigning to Jano Rojcek to discuss it on nbui firstly" : I haven't seen anything on nbui; should I raise it there to get agreement?
Well, it is correct to right align values in number columns in table or tree table. It should be done also when editing such value. Move to nbui if further discussion is needed. David-John, I hope it works for you in debugger.
Yes, that seems fine to me. To recap: We are saying when a column in the treetable will only contain integer values, then the contents of those values will be right aligned. By the JLF guide, the titles of the columns should remain centered [ick. <- personal opinion. :-)] We ought to be doing something similar with floating point values, though this probalby should align the values around the marker between the integer and fractional parts. See also: http://java.sun.com/products/jlf/ed2/book/HIG.Misc2.html http://java.sun.com/products/jlf/at/book/Idioms4.html#996727