CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 1999
    Posts
    5

    jtable scrollpane



    Now I found Jtable have no tableheader in scrollpane.

    my program:

    Jtable jt;//have defind before.

    ScrollPane sc=new ScrollPane();

    sc.add(jt);

    pls help me!Thank you!

  2. #2
    Join Date
    May 1999
    Posts
    93

    Re: jtable scrollpane



    You are not getting the header because you are using ScrollPane instead of

    JScrollPane. The first is an AWT component whereas the second is a Swing

    component.


    Use JScrollPane.




  3. #3
    Join Date
    Apr 1999
    Posts
    3

    Re: jtable scrollpane



    Michael,

    If you are using VCafe and using Symantec's TableDataModel, and your Table data model has no data, the table HEADERs do NOT show, this is a know bug, the current work around is to add a row and remove it.


    I hope this helps!



  4. #4
    Join Date
    Jan 1999
    Posts
    5

    again Re: jtable scrollpane



    Thank you.

    I using JDK1.16 ,JDK1.2 ,JBUILDER2.0.

    I can show jtable in scrollpane.but dont show jtable 's jtableheader.

    I want get jtable's jtableheader and add jtableheader to scrollpane by hand.

    Can be?

    Now I can get jtable's jtableheader.but I dont know add jtableheader to scrollpane.

    if ok,How can I?

    pls help me again.

    Thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured