Closed GoogleCodeExporter closed 9 years ago
Original comment by kenneth....@gmail.com
on 15 Jul 2009 at 1:37
Can you see if the attached jar fixes your issue?
Original comment by kenneth....@gmail.com
on 16 Jul 2009 at 6:36
Attachments:
I guess it is the same file you sent me by e-mail, so I can confirm that this
issue is fixed.
Original comment by m...@danielluedecke.de
on 16 Jul 2009 at 7:55
Right! I forgot this issue was attached to you (Daniel).
Thanks,
-Ken
Original comment by kenneth....@gmail.com
on 16 Jul 2009 at 8:02
What steps will reproduce the problem?
Run the example code from the wiki.
What is the expected output? What do you see instead?
The example code below, taken from the wiki, gives me a table with a gray
background
and no column headers, instead of one with headers and white/blue alternating
row
colours. It does work with 0.9.4.
What version of the product are you using? On what operating system?
0.9.5, as well as the update from the 16 July comment on this issue. Both
exhibit the
problem. My OS is Mac OS X 10.5.6 with JDK5. I'm using NetBeans 6.7, but not
the GUI
builder, just straight Java.
Please provide any additional information below.
// this is a test that show the problem (on my box).
public class ITunesTableTest {
public static void main(String[] args) {
// create itunes table
String[][] data = new String[][]{
{"A", "B", "C"},
{"D", "E", "F"},
{"G", "H", "I"}};
String[] columnNames = {"One", "Two", "Three"};
TableModel tm = new DefaultTableModel(data, columnNames);
JTable t = MacWidgetFactory.createITunesTable(tm);
JFrame frame = new JFrame();
frame.add(t, BorderLayout.CENTER);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(200, 200);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
}
Original comment by eriksen...@gmail.com
on 4 Sep 2009 at 1:38
I may need to update the demo code -- I'll take a look.
Original comment by kenneth....@gmail.com
on 4 Sep 2009 at 1:51
Update to my previous post: the lack of table headers was due to my not
wrapping the
table in a JScrollPane. (Sorry, I feel pretty stupid now... ;) )
Original comment by eriksen...@gmail.com
on 5 Sep 2009 at 12:08
OK, thanks for the update.
Original comment by kenneth....@gmail.com
on 5 Sep 2009 at 6:44
[deleted comment]
This is now works for me in the latest build that I just downloaded a minute
ago!
Great :D
Original comment by eriksen...@gmail.com
on 8 Sep 2009 at 10:07
Original issue reported on code.google.com by
m...@danielluedecke.de
on 15 Jul 2009 at 11:48Attachments: