Re: jtables in netbeans help
Ann Sunhachawee <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Some of your issues are Java quirks. Did you place the table within a scrollpane? That's how you'll get the table headers to show. For your other questions, you may want to refer to this tutorial which also addresses how to set the initial sizes of columns: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#width I'm not sure if NetBeans property sheet lets you access each column so you can setPreferredWidth(). Ann cmate wrote: >I am learning NetBeans and Java for that matter, and have created a JFrame >and put a JTable in it, and am having a hard time figuring out how to modify >things in NetBeans - for example, how do I make the column headers show? I >see where to edit the text for the headers, but cant figure out how to make >them show. I can find sample java code on how to do this, but I am trying >to figure out the 'NetBeans' way of doing it. > >Also, I am trying to figure out how to modify the JTable column sizes >graphically in NetBeans... > >It would be nice if there was a site with various mini tutorials on how to >do these things.... > > > >