Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Table in AWT

Thread view: 
Selie Peter - 20 Mar 2006 18:19 GMT
Hello,

Does anybody know a way to use a Table in AWT? (something like JTable in
Swing)
(I'm extending an existing application on a PDA so I can't use Swing)

TIA
Thomas Weidenfeller - 20 Mar 2006 18:27 GMT
> Does anybody know a way to use a Table in AWT? (something like JTable in
> Swing)
> (I'm extending an existing application on a PDA so I can't use Swing)

Java SE doesn't have one. You need to write your own component, or
obtain one (Google ...) form a third party.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Roedy Green - 20 Mar 2006 20:12 GMT
On Mon, 20 Mar 2006 18:19:35 +0100, "Selie Peter"
<#lootens_pieter_nospam#@hotmail.com> wrote, quoted or indirectly
quoted someone who said :

>Does anybody know a way to use a Table in AWT? (something like JTable in
>Swing)
>(I'm extending an existing application on a PDA so I can't use Swing)

there are no table Components in AWT. You would have to roll your own
something like JTable, perhaps much simpler and less general.
Basically you write a Canvas and when you get a paint event, you paint
that clipregion.  Basically you use division of the x/y co-ordinates
to compute which cells need to be repainted, then you paint them
probably with drawString.  When you are done you can plop your canvas
in a ScrollPane.

I was going to say look at the code for JDisplay to see how, but I
have not yet released that code.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.