simple non JTable tables

I use HTML alot and am now trying my hand at java. Now, with html i can create a simple table without headings, borders and this allows me to align and setup a framework for a webpage. How can I do this in java? I tried using JTable but that had draggable headings, selectable rows. I dont want that. I just want to be able to align text, set widths of columns, etc. Does anyone know a way to do this?

[408 byte] By [Sr.Slicea] at [2007-10-2 16:47:56]
# 1

To be frank a comparison of HTML tables to JTables is not overly encouraging. Java is a programming language. HTML is a markup language for describing how to display documents. Java is a multi-faceted and powerful tool. HTML is not.

If you want to learn by all means go ahead but I am not sure you are really looking for a fully fledged programming language here. In the end you can do whatever it is you want to do but I suspect it may be overkill for what you are trying to accomplish.

If you want to continue start here http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Sr.Slicea at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...
# 2
Even in HTML using tables for layout purposes is frowned upon, you should use a stylesheet instead :)In Java (Swing) you layout components in a user interface using a LayoutManager. I think a GridLayout is the closest thing to an HTML table.
Herko_ter_Horsta at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...
# 3

You might want to look into the [url=https://tablelayout.dev.java.net/]TableLayout[/url] layout manager at java.net.

I would advise running through the Swing tutorial on this site or buying a Swing book (there are many to choose from- I like Vorobiev's book.)

Good luck.

-Filestream

filestreama at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...
# 4
See in Java you have filestream. You don't have that in HTML. The question is, is it wanted? Are you strongly averse to music from the 80's?
filestreama at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...
# 5

> See in Java you have filestream. You don't have that

> in HTML. The question is, is it wanted?

>

> Are you strongly averse to music from the 80's?

What I am averse to, are the surfeit [url=http://news.bbc.co.uk/2/hi/south_asia/4877034.stm]wardrobe malfunctions[/url]. Can't a model do their little strut on the catwalk without being too sexy for their clothes?

filestreama at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...
# 6

> > See in Java you have filestream. You don't have

> that

> > in HTML. The question is, is it wanted?

> >

> > Are you strongly averse to music from the 80's?

>

> What I am averse to, are the surfeit

> [url=http://news.bbc.co.uk/2/hi/south_asia/4877034.st

> m]wardrobe malfunctions[/url]. Can't a model do

> their little strut on the catwalk without being too

> sexy for their clothes?

At least they [url=http://www.philly.com/mld/inquirer/sports/14264484.htm]can find a dry cleaner[/url]. Class act that guy.

filestreama at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...
# 7
> Class act that guy.So I aksed Clemens, "Youse gonna throw a splitter when youse is deep in da count to left-handed high hitter?"and he goes, "No way."
filestreama at 2007-7-13 17:58:55 > top of Java-index,Java Essentials,New To Java...