JTable - hide colunm names in JScrollpane?

Anyone got any good ideas on hiding the headers of a jTable when displayed in a scrollpane? i just want the contents visible and nothing else
TIA
steve

Well actually you can do the following ...
in a Jtable you can call getTableHeader. This returns the header
of your table. Im guessing you could call hide() or setVisible()
and it will disappear.

Similar Messages

  • How can I hide file names in a photostream?

    How can I hide file names in a shared photo stream on icloud.  I don't want people to see how many pictures I take at an event.  Can this be done to pictures already posted?

    The Shared Photo Stream uses the filename of the original image file as the title that is shown in the stream.  If you want to hide the original filename, export the image to a folder in the Finder, rename it, then reimport it to share it.  You can rename the files directly when exporting.
    Or, if you do not mind to change the names of the originals in Aperture use the command "Metadata > Batch change" and change the title of the image, with the option "Apply to Original file" enabled and "Add metadata from" set to "None".
    To rename the photos already shared, delete them from the Shared Album and share them again.

  • How do i change the color of a JTable's column names

    hai,
    i'm very new to java and trying to customize the look of a JTable.
    how do i change the color of a JTable's Column names. i know its very simple, i just couldn't figure out how to do it!!
    thanx in advance

    table.getTableHeader().setForeground(Color.RED);

  • Is there a way to hide the name of the sender of a text message?

    Is there a way to hide the name of the sender of a text message?

    If the sender's name is not in your Contacts only the number will be shown, not the name.

  • How to hide full name in the "to" box of email...

    Hi all,
    I have several "private" people on my mailing lists who do NOT want their full name showing up in the "to field" when I send them email. I have tried everything short of simply deleting their last names from my address book and nothing has worked. Is there a way to specify that Mail MUST use their nickname instead of their full name when I send them email? Anybody know?
    K

    A different solution would be to BCC them; their names and addresses won't be available to anyone but you. You can even BCC to the entire mailing list - in some cases you'll have to provide a single To address, such as your own, to get the mail to send. It effectively hides the names and addresses of the people in your mailing list.
    (Well, this works prior to Tiger and I doubt they've taken the ability away. Good luck.)
    srb

  • Repeated Colunm Name (Report 6i)

    Dear all
    I have design a report. Report query is given below:
    Select User_Name, Loggon_date, Loggon_Time, Logoof_date, Loggoff_Time
    from Log
    where Loggon_date between :p_from_date and :p_to_date;
    In report setting i set Group by User_Name.
    Now when i run my report it show the result like this
    Scott
    Loggon_date Loggon_Time Logoof_date Loggoff_Time
    11-nov-2008 12:05 PM 11-nov-2008 12:40 PM
    12-nov-2008 12:05 PM 12-nov-2008 12:40 PM
    13-nov-2008 12:05 PM 13-nov-2008 12:40 PM
    System
    Loggon_date Loggon_Time Logoof_date Loggoff_Time
    11-nov-2008 1:05 PM 11-nov-2008 1:40 PM
    12-nov-2008 1:05 PM 12-nov-2008 1:40 PM
    13-nov-2008 1:05 PM 13-nov-2008 1:40 PM
    so i want it show only one time colunm name on report like this
    Scott
    Loggon_date Loggon_Time Logoof_date Loggoff_Time
    11-nov-2008 12:05 PM 11-nov-2008 12:40 PM
    12-nov-2008 12:05 PM 12-nov-2008 12:40 PM
    13-nov-2008 12:05 PM 13-nov-2008 12:40 PM
    System
    11-nov-2008 12:05 PM 11-nov-2008 12:40 PM
    12-nov-2008 12:05 PM 12-nov-2008 12:40 PM
    13-nov-2008 12:05 PM 13-nov-2008 12:40 PM
    So please let me know which one property i set and get the desire result.
    Thanks in Advance.
    Regards

    create the query as described. In the data-,
    model you will get one query-object (rounded box) and beneath it there will be one group object (rectangle). Now just drag&drop the username-column out of the group to a location between the query-object and the first group-object. You will get a second group containing the username.
    Now in the layout you create two repeating frames, one for the user, on for the rest.

  • Is there any way to hide region names?

    I recently switched from garageband to Logic, and my only complaint is that there isn't a way to hide region names, which would give the same words-free editing experience as garageband.  If anyone knows of a way to do it, please post, thanks!

    Hi
    You could use the Text tool or the Region Parameters to clear the default names:
    CCT

  • Please Help! What causes JTable to shrink w/in JScrollPane?

    I've looked everywhere for the answer for this, and lots of people have the same problem, but it never seems to get answered.
    I have a JTable (3 columns) in a JScrollPane.
    printerTable.setModel(data, colNames)
    scrollPane = new JScrollPane(printerTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); Initially, the columns fill the entire width of the scrollpane. But when I refresh the data, the columns shrink and a white space is left on the far right side. What do I need to do to get the columns to always span the width of the scrollpane? Do I have to fire events?
    I've tried all sorts of things, including...
    printerTable.setPreferredScrollableViewportSize(printerTable.getPreferredSize());
    printerTable.sizeColumnsToFit(-1)and I've tried setting preferred, min and max widths. Is there some order you have to put them in?
    This is soooo frustrating...I've spent days trying to get this right and I haven't accomplished anything.

    Thanks for trying to help guys! Actually I think I've finally gotten it to work! What a relief!
    I figured I post it, since I've seen lots of posts from people having the same problem...
    I created my own class that extended JTable and overrode the getScrollableTracksViewportWidth() to return true (I was only going to have 3 columns, not any more).
    The other things that I had to do were:
    queueTable.setAutoCreateColumnsFromModel(false);
    queueTable.setPreferredScrollableViewportSize(new Dimension(200, 150)); //w x h
    queueTable.setAutoResizeMode(MyJTable.AUTO_RESIZE_OFF);Plus, I removed the following that I had put in previously:
    //queueTable.setPreferredSize(new Dimension(290,900));
    //queueTable.setPreferredScrollableViewportSize(queueTable.getPreferredSize());I also didn't need to set the min, max, & preferred column widths or the preferred size of the table.

  • Can you hide individual names in a group email

    Hello there,
    I've trawled the discussion pages and cannot find this question, so I hope I'm not repeating it.
    I want to send an email via Mac Mail using the 'send to group' facility on the Mac Address book. However I want to send the email and hide the individual names on the list. Is there a way to do this? I can do it using MicroSoft Entourage (don't all shout!) but would prefer to use Mac Mail.
    If it's not a facility available on Mac Mail then it's something to be considered. I don't want to go over to the 'Dark Side' but needs must.
    Cheers
    Tommisauce

    Hi Tom, and welcome to Apple discussions. This is the 10.3 Panther forum and I just tested the solution on Panther, and then noticed you have Leopard, but think it will work for a Leopard machine as well.
    I think there a few ways to do it. One way is to make a group of names in your Address Book and have in that group all of your intended mail recipients.
    I also couple this with a Mail preference but am not sure if this is necessary.
    Mail; Preferences; click on the Composing tab, and you will see under Addressing: When sending to a group, show all member addresses. Uncheck that.
    Then drag your group from the Address Book into the To: field and send.
    The recipients will not see the other addresses.
    You may like to bookmark the following link for future reference.
    Mac OS X 10.5 Leopard
    Message was edited by: roam

  • How to hide object name in tray of pages

    Hi everybody,
    I want to hide the object name in the tray of a page.
    I act as follows: open Page in VC --> Configure Page --> Look & Feel --> unselct "Show Object name in Tray"
    I thought that is the right way, but every time I want to deploy, the option is true again.
    Could anybody help me?

    Hi Robert,
    Unfortunately, evrytime you open the model, it shows default values for the fieds. The only field for which it shows the correct value in the dashboard is 'Show Help Option'. However, at runtime, it does reflect the changes you make. You can check that in PCD.
    e.g. If you uncheck the checkbox for 'Show object name' and deploy the first time. The page should reflect the change on the Portal in PCD, however in the model shows the default value i.e. the checked checkbox. If you deploy it again, it won't change the value on the portal. It will still retain the value(unchecked,) on the portal. In order to change the value back to what it was (checked) originally, you have to uncehck the checkbox and check it again and then deploy. The values will change on the portal.
    I don't know the reason behind this behaviour though.
    Regards,
    Ajay

  • JTable display colmun name vertical

    Hi,
    i have to display a JTable, but the column width is small and the colmun heading has lot of text and so cannot fit , is there a way i can increase the height of the column header and display the text vertically,
    just like we can do in Exceel sheet...
    any hint or code will be appreciated
    Ashish

    Tryadd (new JScrollPane (createTable ()));or add the header separately.
    Kind regards,
      Levi

  • Possible to hide Grouping name for certain tracks only?

    I am organising my classical music library and using the Grouping column with good success.
    However, it would be visually better to be able to hide the Grouping name for the subsequent movements of a piece. For example in a Dvorak album:
    ..Grouping*.............................*Name
    1.Cello Concerto in B minor.1.Allegro
    2...........................................2.Adagio
    3...........................................3.Allegro moderato - Finale
    4.New World Symphony........1.Adagio
    5...........................................2.Largo
    6...........................................3.Scherzo
    7...........................................4.Allegro con fuoco

    I have never used the shuffle by groupings feature, but I would think it would be affected.
    You need to experiment and decide how important shuffle by grouping is compared to the appearance in the iTunes Library.
    iTunes is not good at dealing with classical music and you will find a lot of discussion of the problem with Google.
    Here is an example:
    http://www.till.com/blog/archives/2008/09/classical_itune.html

  • How to Hide/Remove Name from Photo Stream Public Website?

    I'm using Aperture 3 to share a photo stream on public website and just noticed that my full name is shown at top right corner. Is there a way to hide this for privacy concerns and still share pictures with non-iCloud members?

    I tried changing my name (Apple ID). It had no effect on the Aperture photo stream website page (and yes, I tried it with a new photo stream).
    I still think your name should not be included by default with public website, as well as ability to prevent pictures from Copy/Save.

  • How to hide full name when publishing photos to icloud's public website?

    When allowing iPhoto to publish photos to iCloud (Public Website, allow anyone to view this photo stream at:..." my full Name (xxx by xxx) is always displayed when opening the link.
    Does anyone know how to hide or change the name displayed?

    I tried changing my name (Apple ID). It had no effect on the Aperture photo stream website page (and yes, I tried it with a new photo stream).
    I still think your name should not be included by default with public website, as well as ability to prevent pictures from Copy/Save.

  • How to hide albums names in Grid View

    Some albums names are too long, like "How to Dismantle an Atomic Bomb". In small screens, like MacBook, is a mess to use Grid View because all long names comes with a cut and "…".
    Can I just hide the albums names and artists names? Would be great if I could have just the covers without the characters soap.

    Woohoo!
    I'm a little drunk right now, it being saturday night, but giving this a cursory and immediate look-over,
    it appears to me that this is exactly what I wanted!
    And also, it seems kind of basic and stupid of me that I have missed it. It seems kind of foolish of me, not fully exploring the "view" menu.
    Of course I explored it a bit, but I did not think that the column browser would contain what I needed / wanted.
    I kind of wrongly assumed that all views were on the GUI, but now that I think about it, that makes no sense. The GUI never shows everything in any app.....
    Thanks a million!
    Until further notice, I think that's just what I was after, as well as the other answers contained in your previous posts.
    Thanks again Steve!
    I appreciate your answers. Really accurate.

Maybe you are looking for

  • Multiple Logic Board Failures... Advice?

    My black MacBook is less than two years old. Starting this past January, I have had a total of three logic boards fail, along with other hardware failures, including the SuperDrive and Keyboard/Trackpad Module. Every time the board fails, it is becau

  • Recording from Cassette Pla

    When recording from a cassette player (into an mp3), is the "line out" from the player the same as the headphone jack or do I need to get a different cassette player.

  • Startup disk full error

    I have a Mac Mini which had its memory and hard drive upgraded at Christmas. It now has a 160gb hard drive in it. I also have a 500gb external hard drive attached, as well as an external 'Time Machine' for backups. It worked fine until Easter. Now, e

  • Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.

    Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.

  • O No: not that bookstore example again!

    I've been reading through the forum to find an answer for my problem but using the suggested solutions doesn't seem to work. I have deployed, redeployed, created, destroyed and re-created, all to no avail. I consistently get a message telling me that