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 / GUI / October 2004

Tip: Looking for answers? Try searching our database.

use JTable and get multipple width header

Thread view: 
kylin - 18 Oct 2004 09:15 GMT
I know the class "GroupableHeaderExample.java" can get it
for example:
* |-----------------------------------------------------|
* |        |       Name      |         Language         |
* |        |-----------------|--------------------------|
* |  SNo.  |        |        |        |      Others     |
* |        |   1    |    2   | Native |-----------------|
* |        |        |        |        |   2    |   3    |
* |-----------------------------------------------------|
* |        |        |        |        |        |        |

but in fact this class run with Exception:
java.lang.NullPointerException
    at tame.table.GroupableTableHeaderUI.getHeaderHeight(GroupableTableHeaderUI.java:97)
    at tame.table.GroupableTableHeaderUI.createHeaderSize(GroupableTableHeaderUI.java:118)
    at tame.table.GroupableTableHeaderUI.getPreferredSize(GroupableTableHeaderUI.java:128)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
    at javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:75)
    at java.awt.Container.preferredSize(Container.java:1178)
    at java.awt.Container.getPreferredSize(Container.java:1162)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1277)
    at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:702)
    at java.awt.Container.layout(Container.java:1020)
    at java.awt.Container.doLayout(Container.java:1010)
    at java.awt.Container.validateTree(Container.java:1092)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validateTree(Container.java:1099)
    at java.awt.Container.validate(Container.java:1067)
    at java.awt.Window.show(Window.java:461)
    at java.awt.Component.show(Component.java:1133)
    at java.awt.Component.setVisible(Component.java:1088)
    at tame.examples.GroupableHeaderExample.main(GroupableHeaderExample.java:72)

I don't know what's wrong, help me pls.
             

                         regards
Paul Lutus - 18 Oct 2004 17:42 GMT
> I know the class "GroupableHeaderExample.java" can get it
> for example:
[quoted text clipped - 10 lines]
> java.lang.NullPointerException
> at ... [ snip stack trace ]

/ ...

> I don't know what's wrong, help me pls.

But it is obvious what is wrong. The problem is in the code you didn't post.
Create and post a short, compilable, working example that shows the
problem.

Signature

Paul Lutus
http://www.arachnoid.com

mitch gart - 20 Oct 2004 14:37 GMT
Paul Lutus <nospam@nosite.zzz> wrote in message
> But it is obvious what is wrong. The problem is in the code you didn't post.
> Create and post a short, compilable, working example that shows the
> problem.

The code is in this discussion:

 http://groups.google.com/groups?hl=en&lr=&th=c73b1a853a327f71&rnum=1

and is related to this article:

 http://www.codeguru.com/java/articles/139.shtml

The source files can be downloaded from the article.

- Mitch Gart
Paul Lutus - 20 Oct 2004 17:26 GMT
> Paul Lutus <nospam@nosite.zzz> wrote in message
>> But it is obvious what is wrong. The problem is in the code you didn't
>> post. Create and post a short, compilable, working example that shows the
>> problem.
>
> The code is in this discussion:

A discussion in this very newsgroup. Please explain why you have started a
new thread on the same topic.

If you choose to start a new thread, you must provide the same information
all over again. You are much better off posting follow-ups to the thread
you started.

Signature

Paul Lutus
http://www.arachnoid.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.