Re: Using tabs and getting rid of staggered lines
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Fri, 11 Nov 2005 09:57:38 -0500
"geeksatlarge" <geeksatlarge@xxxxxxxxx> wrote in message
news:1131668696.139790.85240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Rhino,
>
> Thanks, for your time. Can you point me towards the location where you
> say "The Java Tutorial has a topic on using JTables in the Swing
> section"? I can use the workout. I'm just learning Java and am
> currently using a book that doesn't explain the contents and uses of
> all the packages and classes that can be used. That would be a useful
> resource too, if it's to be found somewhere on the web.
>
> Meanwhile I'll see if I can locate some info on JTables on my own.
>
Here's a link to the current version of the Java Tutorial in it's entirety:
http://java.sun.com/docs/books/tutorial/index.html
If you look on the right hand side of the page, there is a box entitled
Tutorial Resources which has a link for downloading all or part of the
Tutorial; I normally use that to download the whole thing to my hard drive,
which gives me faster access to the information than even my DSL connection
allows. (The tutorial is undergoing regular updating - at least it used to
be! - so you will want to download it again every few months so that you
have the latest and greatest version.)
Now, if you click on "Creating a GUI with JFC/Swing" in either the online
or downloaded version of the tutorial, you'll get into the pages that deal
with the GUI classes. That whole chapter - or "trail" to use their
terminology - is worth reading if you're getting into GUI building. If you
want to get to the nuts and bolts of building specific GUI components, click
on "Using Swing Components". Then, in the resulting page, I usually click on
"A Visual Index to the Swing Components" so that you see actual realistic
pictures of the different components so that you can figure out which one
you want. In your case, you want to display a table so scroll down to the
bottom and you'll see a picture of a table; click on the "Table" link and
you'll be on this page,
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html, which
gives you the tutorial on constructing JTables.
As you'll see in the very first picture of the JTable lecture, the tables
are much prettier than anything you'll ever get with Graphics.drawString().
They're also a lot more functional and flexible. But I'll leave you to
discover all the benefits on your own :-)
Have fun!
Rhino
.
- References:
- Using tabs and getting rid of staggered lines
- From: geeksatlarge
- Re: Using tabs and getting rid of staggered lines
- From: Rhino
- Using tabs and getting rid of staggered lines
- Prev by Date: Java 3D Game: MatelBeasts
- Next by Date: Re: Help with BlueJ: editing and auto indenting all including {}'s
- Previous by thread: Re: Using tabs and getting rid of staggered lines
- Next by thread: Re: Using tabs and getting rid of staggered lines
- Index(es):
Relevant Pages
|