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 / April 2008

Tip: Looking for answers? Try searching our database.

JTable Headers and Windows Vista

Thread view: 
Jason Cavett - 15 Apr 2008 18:48 GMT
I just recently moved my Java application from Windows XP to Windows
Vista.  I'm using JRE 6.0, so things went relatively smoothly.
However, I noticed that the headers of my JTables are extremely tall
(height) in Windows Vista (under Aero).  Does anybody know a fix for
this or why this is happening?  It's pretty ugly looking.

Thanks
Chase Preuninger - 16 Apr 2008 00:39 GMT
see if there is a way you can manually specify the cell height
Jason Cavett - 23 Apr 2008 22:08 GMT
On Apr 15, 7:39 pm, Chase Preuninger <chasepreunin...@gmail.com>
wrote:
> see if there is a way you can manually specify the cell height

There was nothing that I could find.
David A. Redick - 25 Apr 2008 04:13 GMT
> On Apr 15, 7:39 pm, Chase Preuninger <chasepreunin...@gmail.com>
> wrote:
>
> > see if there is a way you can manually specify the cell height
>
> There was nothing that I could find.

myJTablw.getTableHeader().setSize(width, height);

I think this very odd.  I was excepting some sort LayoutManager for
JTable.
They have one for just about every other class, why not JTable?
Eric Sosman - 23 Apr 2008 22:33 GMT
> I just recently moved my Java application from Windows XP to Windows
> Vista.  I'm using JRE 6.0, so things went relatively smoothly.
> However, I noticed that the headers of my JTables are extremely tall
> (height) in Windows Vista (under Aero).  Does anybody know a fix for
> this or why this is happening?  It's pretty ugly looking.

    FWIW, my JTables' headers seem about the same size with
Java 1.6.0_05-b13 on Solaris, XP, and Vaster.  So whatever's
happening to yours doesn't appear to be a "generic" tables
problem.  Can you post a short program that demonstrates
the issue?

Signature

Eric.Sosman@sun.com

Jason Cavett - 24 Apr 2008 14:36 GMT
> > I just recently moved my Java application from Windows XP to Windows
> > Vista.  I'm using JRE 6.0, so things went relatively smoothly.
[quoted text clipped - 10 lines]
> --
> Eric.Sosman@sun.com

Thanks for the response.
There's nothing special that I do to create this problem.  Basically,
I just create a JTable and it looks okay in XP, but crummy in Vista.

FWIW, I create a JTable, give it a DefaultTableModel and then display
the table.  I don't set any sizes other than preferred column width.
I don't do anything fancy.  I don't currently have a piece of code
that I can provide - I'll see if I can put something together.
Eric Sosman - 24 Apr 2008 15:18 GMT
>>> I just recently moved my Java application from Windows XP to Windows
>>> Vista.  I'm using JRE 6.0, so things went relatively smoothly.
[quoted text clipped - 10 lines]
> I don't do anything fancy.  I don't currently have a piece of code
> that I can provide - I'll see if I can put something together.

    No funny fonts that might have different metrics on Vaster
than elsewhere?  No baroque cell borders, no customized cell
renderers, no oddball layout managers, no ...?

    I'm sort of hoping that in the process of stripping your
code down to a postable minimum you'll find that jettisoning
an apparently harmless something-or-other will suddenly make
the problem go away (or at least change), and thereby focus
attention.  But until then, "Is a puzzlement."

Signature

Eric.Sosman@sun.com



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.