JTable: having first N columns not scroll with the rest of columns

Hi All,
I'm having trouble wording this properly (hence my inability to google for the solution)...
What I am trying to do is:
* Have a table with N number of columns (for example 100 columns).
* The table is enclosed by scroll pane, so scrolling left and right will show different columns
* I want first X number of columns (say 2 columns) to be always visible (i.e. they should not scroll with the rest of the columns)
Is there a way to accomplish this with one JTable?
Thanks and best regards,
-Pavel

I found the answer here:
http://forum.java.sun.com/thread.jspa?threadID=665435&messageID=3951902
Edited by: ptxyz on Jan 25, 2008 8:06 AM

Similar Messages

  • My touchpad will not scroll with the current version of foxfire.

    The screen in foxfire will not scroll with the sliding of my finger on right side of the touchpad on my lenovo thinkpad or the navigation button. It does work with all other programs including windows explorer and google chrome.

    OK, this is the original poster again. The trackpad scrolling problem has been sporadic. Now I have realized that I have this problem (in Firefox 7.0 and 7.01) WHEN THERE IS A PDF DOCUMENT OPEN IN ONE OF THE TABS. When there is a .pdf open, trackpad scrolling works fine in *that* tab but not in any of the other Firefox tabs that are open. When I close or move away from the .pdf file, then the scrolling function returns in the other tabs. Is there something about the Acrobat plug-in (ver. 9.4.5) that isn't working correctly in Firefox 7.x?

  • PS CC 2014 DNG and RAW 8.5 did not update with the rest of the CC package. I downloaded/installed the DNG/RAW converter but how do you install w/i CC 2014 plugins

    PS CC 2014 DNG and RAW 8.5 did not update with the rest of the CC package. I downloaded/installed the DNG/RAW converter but how do you install w/i CC 2014 plugins

    Thanks John. I have tried solutions 1 to 3 from (-http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.h tml) and they do not work. So I presume that all I can do is to remove all 25 CC applications and start again!
    Incidently, ( http://www.adobe.com/downloads/updates/ ) does not list Adobe Camera Raw 8.4 as an update even though Adobe have announced that it is available (http://blogs.adobe.com/lightroomjournal/2014/04/camera-raw-8-4-and-dng-converter-8-4-now-a vailable.html). The same applies for Adobe Premiere Pro 7.2.2 (http://blogs.adobe.com/premierepro/2014/04/premiere-pro-cc-7-2-2.html). If they are not available this would explain why I cannot download them but I am very suprised that Adobe didn't mention this when I contacted them.
    Anyway thanks again

  • My mac air calendar is not synchronizing with the rest of the devices

    Hi,
    Can you tell me how to make my Mac air calendar synch with the rest of my apple devices (ipad, phone...)

    If the other devices are synced with iCloud, check the Calendars box in the iCloud preference pane.

  • After Effects did not install with the rest of CS4

    I purchased the Student Edition of CS4 Production Premium. When I ran the installer I selected "custom" and AE was unchecked and it would not let me check it. I did regular install and it did not install AE. I used all 4 discs in the box. Any thoughts?
    This is the Mac version.

    This is a bit of a shot in the dark, but check to make sure that you have Rosetta installed in Mac OS and then try again to install After Effects. I know that Mac OS has a (mistaken) dependency on Rosetta for After Effects to run. It _may_ be that this dependency also causes a problem with installation.
    Here's a document that lists some know issues with After Effects on Snow Leopard:
    http://kb2.adobe.com/cps/516/cpsid_51667.html
    When you do get After Effects CS4 installed, be sure to immediately update to After Effects CS4 (9.0.2).

  • Why does my Blog not publish with the rest of my new pages and photos????

    Much more work was done on my iWebsite today and I even made a rudimentary beginning of a blog.
    QUESTION:
    Why does my blog not publish?
    Lorna in Southern California

    James, the blog is on Safari now. I am embarrassed to say that I had already forgotten that I needed to make a link to the Site Menu. Since I had done all of that in a tear of activity previously, it's as though the process did not stick in my head. Sort of like forgetting to plug in the computer. 8-(
    I did not even realize what I had done wrong until I made a hyperlink from that site to my site menu and checked to see that the blog became visible. It's disconcerting to think that this kind of thing could happen to me again. 8-(
    I would be very interested in seeing people's blogs and how they use them. I've seen blogs used as news reports, blogs with music videos, blogs with photos. I earlier thought that a blog was like a diary: Words only.
    Lorna in Southern California

  • Vector selection is not consistent with the rest of the UI.

    When I select a text layer, it doesn't automatically select all of the text for me. 
    When I select a layer mask, it doesn't automatically go into quick mask.
    Yet when I select a vector, I'm automatically presented with an outline of the shape. At the moment I'm constantly pressing shift+ctrl+h all over the place just to dictate when I want to see my outline. Folders with vector masks do this right - I can select the vector by clicking on the vector, or I can select the folder by clicking on the folder or anywhere other than on the vector mask. 
    Don't force me into ctrl+shift+h-land. Just let me be able to click what I want to select.

    If the other devices are synced with iCloud, check the Calendars box in the iCloud preference pane.

  • Main stage dimentions does not match with the rest

    Hello,
    I just open a new project in Flash. Set the dimensions of
    main stage to 1000x800.
    Than I created a movie clip symbol, which will be page1 of
    new website. Dimensions are 1000x800. There I import various
    graphics to design that page. When I import that page1(movie clip
    symbol) on the main stage, it is much bigger than main stage. So
    that page1 does not fit on main stage. Could anyone tell me, what I
    do wrong or how to solve this problem?
    Thank you so much for any input and I appologize for such
    basic question.
    Cheers
    Janek

    Hi dzedward,
    thanks for your tip. Yah it is pain in the....... Not only
    that you don't know where all the elements will be after you drag
    them to the main stage. It is the size what bothers me most. Even
    if I place elements closer together, than I would like to have
    them, the whole movie symbol is bigger than main stage, so they
    reach out of main stage borders. I had to place all elements on the
    main stage, convert the whole thing into symbol, put on paper the
    placement of every element, deleted it and build it again in new
    movie symbol. I know it is a cowboy style, but I really did not
    know what to do except throw that computer out of the window.
    dzedward, thanks again for your help, I really appreciate it.
    Cheers
    Janek

  • When I select a local adjustment, how do I make the new adjustment panel scroll with the default panels

    In lightroom, in the Develop module. When I select a local adjustment for example the brush tool or the gradient tool, the adjustment panel for the particular tool comes up in the sidebar where I can make adjustments to these tools (shown in figure below).
    Now my question is with this adjustment panel, it seems to be overlaying on top of the other default adjustments (e.g. the "Basic panel" - the exposure, contrast etc.) and when I scroll down on the other adjustments, the brush tool or the gradient tool adjustment panel is always on top and does not scroll with the default adjustments.
    I would like to change the setting of this so that the adjustment panel is part of the other default adjustments in the develop module and scrolls with them,
    I know this is possible because I've seen videos online where this is the case and my lightroom on another machine does this.
    Would anyone know how would I change the setting for this?

    It seems to depend on the actual size of the Lightroom window. Just messing around with both LRCC and LR5 on my MBP 15" retina, with a 1920 x 1200 external monitor, and both Lightroom versions will happily scroll the Adjustments panel as well as the others, but only if the size (i.e. height) of the Lightroom window is below a certain level. So on the retina screen, when the display is set to "Best for Retina", the adjustments panel scrolls with the others. But if I change to the native 2880 screen resolution, and expand the LR window to fit, then the adjustments panel does not scroll.
    Similarly if I move LR to the external monitor, same thing, i.e. adjustments panel does NOT scroll when the LR window in maximised, but it does scroll when I lower the height of the LR window (seems to be round about the 1600 pixel mark)
    It's the same using LR5, and the same on the Windows platform. I suspect it's somehow based on the height of the adjustments panel in relation to the overall height of the LR window, i.e. the adjustments panel does not scroll when there's sufficient overall space in the right-hand panel to allow sight of the one or more of the other tools below. 

  • Is it possible to edit spoken dialog without interfering with the rest of the sound?

    I'm trying to piece together video clips from various movies, and in one of these clips the character swears strongly a couple times. Normally, I don't bother with this, but my audience is that of a "clean" nature and is strongly against profanity. Is there a way to briefly mute, or change the character's voice when he cusses and not interfere with the rest of the sound? Or is this asking too much?
    Also, I looked in the "help" section and couldn't find anything to help me with this. But I have a bunch more questions. Where do I go that will explain all the features of Premiere Elements 8, without forcing me to spend hours figuring it all out and/or posting a billion discussions here in the forums and bugging all of you with my lack of knowledge?

    What you are attempting to do requires a bit of work and then some luck.
    It sounds as though you have an Audio Clip with both background noise and possibly music, plus dialog. You wish to remove just the dialog in a particular spot, or spots. Is that correct?
    If so, then in an Audio editing program, like Adobe Audition, you can possibly extract the ambient sound/music with a Karaoke Effect, or with the application of EQ. This will yield a separate file with hopefully just the background and music, and no dialog. In a Multi-Track Session, place both files on a separate Track. Find the point where you wish to remove the dialog. Here, the workflow might differ, but I'd Cut out the dialog at that point, leaving only the Karaoke Track. To clean things up, when I had done this for each offensive passage, I would go to the Karaoke Track and do just the opposite - Cut out all that was NOT underlying the offensive passages, but leave a bit of that Track before and beyond the deleted dialog. Then, I'd add a Cross-Dissolve for Constant Power to those Karaoke segments to "ramp" the Karaoke Track into the mix, as it will never be perfect, and one wants as smooth a transition, as is possible.
    Now, one can do this in other audio editing programs, that offer Multi-Track editing, and also VST plug-ins, or install with Effects like Karaoke and/or Parametric or Graphic EQ's. You could explore the great, free audio-editor, Audacity, and Google for VST's that will enhance its capabilities. Be sure to read the Help files on Audacity, as one does need to do a few things in setup to allow the addition of more VST's.
    The work will be with the Karaoke (or similar) Effect, its result and also the frequency ranges of the speaker. That is where the "luck" comes in. Much human speech can be EQ'ed out, or at least greatly attenuated. Now, if you have a crowd talking in the background, or similar, and wish to retain that, all bets are off.
    Also, if you only have ambient sounds, and no music, behind the speaker, just find segments of that ambient sound, where the speaker is not talking, and use that to "patch" where you cut out the dialog.
    Good luck,
    Hunt

  • When I buy a pre order song how do I get it to play with the rest of the CD?

    When I buy a pre-order song from i tunes, and then purchase the CD the song was from it will not play with the rest of the CD.
    Example: Tori Amos's new CD Unrepentant Geraldines
    I purchased the single Trouble's Lament when it was released, before the CD.
    I just purchased the CD and the song should be #2 on the CD, but its not there, it is listed separately, and will not play with the CD.
    Also, other issue... Free U2 CD, it says its in my Library when I clicked on the CD add in the store. It's nowhere to be found in my library!! I really would love to listen to it since I have several of there CD's and am a big fan
    If anyone can help with either of these issues , I would greatly appreciate it.

    For the single, if you select the track in your library and do 'get-info' (control-I) on it and select its Summary tab on the popup are its details (e.g. album name and artist) the same as for the other tracks on the album ?
    For the U2 album you should be able to download it into your library by ticking the 'show iTunes in the Cloud purchases' tick box on the Store tab in iTunes > Preferences - it should then show in the Music part of your library with a cloud icon against it for downloading (downloading the booklet for it this way may not work, you may get a 'corrupt file' message when trying to open it, though that might have been fixed by now).
    Or go to the Purchased link under Quick Links on the right-hand side of the iTunes store homepage and you should be able to download it from there.
    A third option is to sign out of your account (Store > Sign Out menu option), find the album in the store and then click on its free 'price' button - you should then be prompted to sign back in and the album should download.

  • Ap Div - How to make them move in browser with the rest of the page?

    I have designed a site, but have placed an ap div "enrol now" button over an image, and when I view it in my browser, the ap div button does not move with the rest of the page.
    http://www.moreefamilydaycare.com/HOME_02test.html
    The "view our gallery" ap div is working.
    Please help.
    (you can see where the enrol now button should appear as I have put it in the main image pic aswell as a guide.)

    APDivs are very tricky to work with especially if use them inappropriately as a primary layout method.
    Here is why:
    http://apptools.com/examples/pagelayout101.php
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Has anybody else been seeing (Not Responding) at the top of the screen and having thier browser not respond to wheel scrolling and scrolling with the usual slider at the right part of the screen?

    I have noticed my Firefox browser is having way too many incidences where it is "Not Responding". The browser freezes up for a second quite often and the "Not Responding" message will appear at the top of the screen.
    The browser will also not scroll with either the scroll bar on the right nor with the mouse wheel. Both used to work in previous versions of Firefox, but it seems to have gotten worse since Firefox 5 0r 6. The same with the "Not Responding". It is happening more with Firefox 7 than in at least the past two versions.
    Anybody else having these issues? Seems like they are hand-in-hand. Thanks for any and all help or advice. It's making me pretty angry since I'm online all day for work.
    Just an FYI. At the bottom of my troubleshooting copy/paste is a suggestion to update the driver for my graphics. That was a no-go. I tried that.

    Thank you for this first reply! I'll have to give this a try later....the main laptop I experience this on crashed not more than an hour after I posted this issue. I'm on a tiny, slow netbook that hasn't had the same problem. Now I'm wondering if I picked up a Trojan on the main laptop and the "Not Responding" message is a side effect of a virus or Trojan.
    One of the system .dll files has been corrupted and I'm not being allowed to use recovery discs, previous disc images, or any recovery options. That was an all day sucker yesterday and from what I've read on forums and have researched, it appears I'm going to need to reload the operating system. If it is indeed a Trojan/virus, I'm surprised it made it through my antivirus and firewall. Anything is possible, really.
    Thanks again, I'll get back with results once I get the wounded laptop back up and running.

  • When I open Firefox, it goes to the first page and then stops, saying "Not Responding" with the cursor spinning. What can I do to fix this? Thanks for any help

    When I open Firefox, it goes to the first page I open, but then stops and says "Not Responding" with the mouse cursor spinning. I hit the close button and it says Windows is searching for a solution (which doesn't come).
    When I open Firefox again, it says:
    Well, this is embarrassing.
    Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page.
    You can try:
    Removing one or more tabs that you think may be causing the problem
    Starting an entirely new browsing session
    Any ideas? I gretly appreciate any help. Thanks!!

    What is that first page?
    Can't you open any web pages in Firefox?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • JScrollPane not scrolling to the end of JTable

    Hello,
    I put a table in a scroll pane, and add the scroll pane to a panel. The problem is the scroll pane does not scroll to the end of the table, it always lets me view only the first 37 rows of the table, regardless of how many rows the table actually has. Basically, the scroll pane thinks the table has exactly the same height, no matter how many lines it has. Why is this happening?
    The code is something like
    model = new SearchResultTableModel(false, null, null);
    table = new ResultTable(model);
    scrollPane = new JScrollPane(table);
    mainBox.add(scrollPane);
    If this is important, the table is a bit more complicated, I subclass JTable, use a custom TableModel, several types of cell renderers / editors, so maybe this is why it behaves so strange. How could I tell the scroll pane the table is actually larger?
    Thank you very much, any ideas are highly appreciated,
    Regards from Romania,
    Adi

    Hi,
    fireTableDataChanged() is the easiest way to do it, but also that one, that forces JTable to rerender all visible cells, regardless the fact, that they are already displayed and would not need rerendering - if you add a row - for example row 7 - do fireTableRowsInserted(7,7); instead - so JTable will only render this single row if it is visible in the viewport. If you add a couple of rows, for example row 7 to 227, do fireTableRowsInserted(7,227); - always fire only the correct notifications accordingly to the changes you make, in order to keep the performance of JTable high.
    greetings Marsian

Maybe you are looking for