Can you make a column in atable invisible

Hi,
I am using the defaulttablemodel to display my table.
The data are in a vector which are sorted in descending order based on a column.
Is it possible to make a column in a table invisible.
The reason is that I need to sort my table based on a particular column but i don't want to display that column.
---thanks

Hi,
I tried to code yout example:
JTableHeader header = tblKundenInteressenten.getTableHeader();
header.setReorderingAllowed(false);
DefaultTableColumnModel columnModel = (DefaultTableColumnModel) header.getColumnModel();
int lastIndex = columnModel.getColumnCount() - 1;
TableColumn columnOid = columnModel.getColumn(lastIndex);
columnModel.removeColumn(columnOid);
header.setColumnModel(columnModel);
tblKundenInteressenten.setTableHeader(header);
...but whenever I want to get the data back like this:
DefaultTableModel dtm = (DefaultTableModel) tblKundenInteressenten.getModel();
Vector daten = dtm.getDataVector();
Vector zeile = (Vector) daten.firstElement();
String oid = (String) zeile.lastElement();
System.out.println("OID: " + oid);
I have an empty JTable in my GUI ...
what happened?

Similar Messages

  • Can you make several columns in pages

    I am considering buying Pages for iPad.  Wanted to know if you can make three or more columns in a document?
    Thanks
    Gtea

    Thanks, that helped me to decide.
    Thanks again
    Gtea

  • Can you make some columns Read/Display Only in DataSheet view?

    I noticed on another posting what appears to be a datasheet view with 3 of the columns in a display mode. Can someone confirm if this is possible?
    Here is the original posting.
    http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationprevious/thread/4fa70a67-06e6-44e0-a2fe-94b1707a400a/
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    Hi Stunpals,
    This always happens on the column type Multiple Lines of Text .
    And certain columns, such as Created By and Modified, are always read-only. Values for these columns are entered automatically.
    When you open the list in datasheet, click on one the column, if it’s read only, you will see read only in right bottom corner.
    For more information, see
    http://devblog.bardoloi.com/2012/08/sharepoint-2010-datasheet-view-selected.html
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • How can I make a column of sums out of a repeating pattern of 24 changing numbers

    How can I make a column of sums out of a repeating pattern of 24 changing numbers in Numbers.
    I have a long list of 8760 numbers of which I need to take the sum (and store in a column) of each 24 numbers.

    Here's one way. I've reduced the example, taking groups of five numbers from a set of 20. I've used 3 as the data number in all cases to make the sum easily recognizable.
    Original column of numbers in Data::column A.
    Data::B2 (and filled down): =QUOTIENT(ROW()+3,5)
    This adds 3 to the row number, then divides by 5, returning the quotient and ignoring the remainder.
    The result is a 'group number' for each group of five rows.
    Sums of each group are reported in the Sums table.
    Sums::A2 (and filled down): =ROW()-1
    Sums::B2 (anf filled down): =SUMIF(Data::$B,A2,Data::$A)
    For your example, assuming the 8760 numbers are listed in column A of a table named Data, starting at cell A2:
    Add a second column to the table (column B).
    In B2 enter the QUOTIENT formula above, with these two revisions:
    =QUOTIENT(ROW()+22,24)
    Fill down to all cells in the column.
    Provided you have named the first table "Data", both formulas in the Sums table will be as written above. You will need to extend the Sums table to 366 rows (including the Header row) to accommodate all 365 groups of 24.
    Regards,
    Barry
    PS: For details on the functions used, see the iWork Formulas and Functions User Guide. You can download the guide via the Help menu in Numbers '09.

  • Can you make a photo album private

    I have some pictures in some albums that I dont want everyone who grabs my phone to see. Can you make an album invisible or password protected ?

    I'm interested in this as well. Anyone have anything? I've searched around but couldn't find anything on this.

  • How can i make hidden column in JTable

    hi, how can i make hidden column in JTable,
    basically i have a ID field in JTable, i have to use this ID , but i also dont want to show this ID in JTable.
    any idea how ??

    staiji its not working
    i did this :
    first :
    TableColumnModel columnModel =
    usersTable.getColumnModel();TableColumn column =
    columnModel.getColumn(1);
    usersTable.removeColumn(column);
    then when i trying to get this :
    Integer userId =
    (Integer)usersTable.getValueAt(UserBrowser.this.usersTa
    le.getSelectedRow(), 0);
    it not give me ID column's value .
    i have a column in JTable like :
    ID | Username | First name | Last name
    i want to hide ID column , but get this ID's value
    when user clicks on JTable row.Hi, if you would read the documentation about JTable.getValueAt(...) you will find, that there is a significant difference between this method and the datamodels getValueAt(...) method. JTables getValueAt(...) method interprets column-index as index in its TableColumnModel - in your TableColumnModel there is no column any longer that holds ID values, therefore you were not able to get it by JTable.getValueAt(...). Do not use these methods for the purpose you want it for - you will also get the wrong values, if the user has repositioned columns - the column index is always interpreted as index in the currently used TableColumnModel and IS NOT A MODELINDEX.
    greetings Marsian

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How can you make the iPod tell the diff between a movie and music video

    Greetings!
    How can you make iPod tell the difference between a Music Video and Movie? Everything I put up on the iPod falls into Movie. So is it something I have to do in iTunes?
    Thanks for the help!

    Rightclick the video in iTUnes, hit Get info then the "Options" tab. Beside kind you can set it to movie. music video. or TV show

  • Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Turn Settings > General > Accessibility > Zoom to ON.

  • Do you have to down load from the internet using apple's recover partition, every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?

    Do you have to down load Mountain Lion from the internet every time you need to do a clean install? or can you make a copy of Mt Lion onto a USB stick and install off that?
    Thanks

    Yes you can make a USB stick of Lion or Mt Lion. Use Lion Disk Maker after you download OS X from the internet.
    For Lion you have to point the download to an external drive and watch when it completes and reboots the system to start the install disconnect the external. If you bought Mt Lion from the Mac App Store then you can download it from there and just cancel the install when it comes up on the desktop.
    If you are downloading from the Recovery HD or from the Online Internet Recovery system, slightly different then the built in Recovery HD, then again you need to point it to an external drive and discoonect that drive when the system reboots to start the real install.
    Then use Lion disk maker to create either a DVD disc or USB thumb of the install files.

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • Can you make an animated gif from edge animate?

    Can you make an animated gif from edge animate?

    not natively. edge exports html and javascript files, not video files, or frames.
    however, you could use a third-party program that has a video screenshot function and make one that way.

  • Can you make an existing document into a .pdf file?

    can you make an existing document into a .pdf file? I used to use pdf factory before my system recovery. I do not want to reinstall that program. Can I do this in Acrobat Reader 7?

    Adobe sell Acrobat (in various versions) to do this.
    Aandi Inston

  • Can you make captions for a slideshow?

    can you make captions for a slideshow? otherwise how can i rename the photo so that i can select view titles in the slideshow and use it as a caption?

    Jim lo:
    Welcome to the Apple Discussions. You can't make captions with iPhoto. You can edit the title of a photo by selecting it and then going to the Info window at the bottom of the Source pane, the "i" button, clicking on the title field and enter what text you'd like.
    If you plan on using the slideshow in iDVD then those titles will not show as they will be lost in the "overscan" area that is common to all movies played on TV. You can create the slideshow in iMovie and have lots of control over titles and subtitles and greater control of the audio track, cut, fade in/out, etc.
    Do you Twango?

  • I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?

    I just bought a used Macbook Pro. How do I make the changes to make it personal. Example the iTunes comes up as the old user and I have to have his password to make changes on the laptop. Can you make any suggestions?
    Also I cant make a right click on the pad. Is that normal?

    Your first going to have to remove all your personal data off the machine to a external storage drive, do not use TimeMachine when it asks as this will copy the entire drive and is unnecessary at this time (also takes too long).
    You need to drag and drop copy your personal data folders (Music, Pictures, Movies etc) to a external storage drive, once done, unmount and disconnect this drive.
    Most commonly used backup methods
    Next your going to follow the Zero Erase and install method for your OS X version, either 10.6 or 10.7, here
    How to reinstall just OS X or erase/install OS X
    10.7 requires your AppleID and password to install, so make sure to have that ready.
    Once you reboot your into the real setup of OS X, which will require your name etc, so it's now your machine.
    Install your programs, iLife package is only free for the owner of the machine.
    If you have the 10.6 machine specific disks, then it's on there.
    If your using 10.7, then you'll have to purchase it from the App Store.
    Last, return your files from the storage drive, consider setting up a TimeMachine or clone on the external drive.

Maybe you are looking for

  • Nvidia nforce2 mpc - no graphics on boot up... please help?!

    I'm not very good with computers so forgive me but I'm having a problem. I just got given a nvidia nforce2 mpc K7N2G I already have a 2400+ xp processor 512 DDR ram (brand samsung) I think I've installed everything correctly but on boot up I can't se

  • Capturing hour 1 of a tape

    So I had some film transferred to D5 and DVCam. I tried to capture the DVCam to offline and I had some problems. I had 12 minutes and 30 seconds of footage on the DVCam (no FLEX file). So I set the capture tool to bring in hour 01:00:00:00-01:12:30:0

  • Where can I find Tables  for Infotype 24 (Skills) & 34 Subtype 3 (Awards)

    Hi I've been looking for these tables for almost a week. I'm trying to look for transparency tables of Infotype 24 and 34. I already have the structure HRPE-PROFQ of PA30. Here are my requirements. STRUCTURE: HRPE_PROFQ COMPONENT:COMPTYPE CLASS_TEXT

  • Opera fonts missing/garbled? [solved]

    I just did an Arch installation on my desktop out of curiosity, and it is FAST AS A MOTHER(rhymes with)TRUCKER ... now I can see what the whole rage was about!  I've been running it on my 233Mhz Dechutes laptop w/212MB ram and THAT runs well, man!! 

  • Labview 2010 icon editor extremely slow

    Working on a medium size project in LabVIEW 2010.  Out of the blue the icon editor slows down.  So slow that typing in one text character takes 20 seconds.  After closing the editor there is about 3 to 5 second lag on every action I make in LabVIEW.