Changing jtable header when moving down

Hi,
I would need changing Jtable header, when the cursor switches between lines
How to do this ???
Best Regards
S.Ancelot

1) You could create a second table header and replace the old one using scrollPane.setColumnHeaderView(...)
2) Or, you could simply change the values in each TableColumn and then repaint the header.

Similar Messages

  • How do i change the cursor on a jtable header when clicked for sorting?

    here is my question, how do i change the cursor on a jtable header when I click the header for sorting?
    I think it is suppose to be in the fragment of code where the header listener is implemented for sorting, but I'm not quite sure what is the exact component that holds everything so that i can change the cursor...
    below is what I've tried, but it doesn't seem to work... thank you
    public void addMouseListenerToHeaderInTable(JTable table) {
    final TableSorter sorter = this;
    final JTable tableView = table;
    tableView.setColumnSelectionAllowed(false);
    MouseAdapter listMouseListener = new
    MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    TableColumnModel columnModel =
    tableView.getColumnModel();
    int viewColumn =
    columnModel.getColumnIndexAtX(e.getX());
    int column =
    tableView.convertColumnIndexToModel
    (viewColumn);
    System.out.println("column = "+column);
    if (e.getClickCount() == 1 && column != -1) {
    System.out.println("Sorting ...");
    Cursor oldCursor =
    tableView.getRootPane().getCursor();
    System.out.println("oldCursor.getType()
    = "+oldCursor.getType());
    if (oldCursor.getType() !=
    Cursor.WAIT_CURSOR){
    JComponent parentPane =
    tableView.getRootPane();
    parentPane.getContentPane().setCursor
    (new Cursor(Cursor.WAIT_CURSOR));
    parentPane.setCursor(new Cursor
    (Cursor.WAIT_CURSOR));
    Cursor newCursor =
    parentPane.getCursor();
    System.out.println("newCursor.getType
    () = "+newCursor.getType());
    int shiftPressed = e.getModifiers(
    &InputEvent.SHIFT_MASK;
    boolean ascending = (shiftPressed == 0);
    //System.out.println("tableView.getRootPane()
    is "+tableView.getRootPane().getRootPane());
    sorter.sortByColumn(column, ascending);
    tableView.getRootPane().setCursor(new Cursor
    (Cursor.DEFAULT_CURSOR));
    //System.out.println("Done sorting");
    JTableHeader th = tableView.getTableHeader();
    th.addMouseListener(listMouseListener);
    }

    Hi,
    Try setting the cursor for the table header.
    table.getHeader().setCursor(Wait_Cursor);
    Bala.

  • RAW images  change to Jpegs when moved

    When I move a folder of Raw files from iPhoto to Canon Image Browser or to a folder in Finder, they change to Jpegs. Is there a way to keep them as Raw CR2 Files when moved. Thanks for any help

    No they don't. However it sounds like you're accessing the Jpeg previews that iphoto creates on import. So, how are you trying to "move a folder" of images? There are a couple of ways, depending on what you are trying to do.
    Processing Raw in iPhoto
    When you import a Raw to iPhoto it automatically makes a jpeg Preview of the shot. Why? Because you can't do anything with Raw - can't print it, share it online, use it in other apps etc. So to allow you to use the file immediately the Preview is available.
    You can, however, also process the Raw in iPhoto simply by editing it. The Raw processing engine in iPhoto the same one used in Aperture, but with less fine control. (Think of the differences between Word and TextEdit, iMovie and Final Cut). The output from the processing then replaces the preview. You can choose to save your output as either jpeg or tiff in the iPhoto Preferences.
    When you are processing Raw in iPhoto you will see the Raw badge on the bottom of the iPhoto Window
    Uploaded with plasq's Skitch!
    Note: After you have processed a Raw, subsequent edits to the photo are carried out on the processed jpeg (or tiff) not the Raw. If you want to go back to the original then you need to use the Photos -> Reprocess Raw command.
    Processing Raw in a 3rd Party Application
    You can also process your Raw with a 3rd Party app like ACR or Photoshop. *But* iPhoto does not handle this gracefully and it's a bit of a kludge.
    First off set your preferred app as an external editor in iPhoto:
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Note that iPhoto sends a copy+ of the file to Photoshop, so when you save be sure to use the Save command, not Save As... If you use Save As then you're creating a new file and iPhoto has no way of knowing about this new file. iPhoto is preserving your original anyway.
    Next: In the iPhoto Preferences -> Advanced, elect to use Raw with your External editor:
    Uploaded with plasq's Skitch!
    Now when you go to edit the Raw it will be sent to your external editor.
    Now for the kludge:
    You cannot save a Raw. The work you do must be output to a new file, in a new format (jepg, tiff, whatever). However, as the External Editor is making this new file iPhoto has no knowledge of its existence. Therefore you *must save it to the desktop and then import it back to iPhoto as a new file*.
    This means that you will have your Original Raw and the processed version in iPhoto but they will not be recognised as version and original. iPhoto will see them as two separate shots.
    ANd, you can always access the Raws simply by exporting with the Kind set to Original

  • My iPhoto's don't save the changes to them when i down load to the pro

    I have taken photo's on the iphone 5s and thn adjusted them on the phone. When i down load into iphoto's they revert back to the oringinal. What am i doing wrong.

    I was adding songs to and existing playlist and now I can't save the changes to the playlist. What do I need to do to save the changes? All my music have now the "+ " sign in front of them

  • Dynamically change JTable header

    Hi to all,
    I was reading this topic regarding column spaning (Groupable Header) which was very helpful to what i wanted to do.
    Although, i am facing a problem while trying to change the header value according to the value of a combo box.
    I don't need to change the header value of the individual columns but the value of the groupable header.
    Has anybody have tried something similar ?
    thnx in advance.

    Problem has been resolved.
    I have modified the 'addColumnGroup(ColumnGroup g)' of the class 'GroupableTableHeader.java' in order to empty the ColumnGroup vector before adding a new group.

  • Keeping the heading when scrolling down the page

    In Excell it is possible to keep the column heading row separate so that when you scroll down through pages of numbers the headings are still visible at the top of the rows. Is it possible to do this in Numbers?
    Thanks

    Go to the "inspector"-click on the "table" icon-then "headers and footers" where you can set the number of headers or footers you want and click/unclick "freeze". You can also do that directly from the button bar on the "header-footer" buttons

  • IPod Nano changing tracks (songs) when moved

    Many times when I am listening to my iPod and set it down it changes the track I am listening to. Since I am listening to a book, this is more than annoying. Is this designed into the older iPods? Is there a way to keep it from happening?

    If your iPod nano model has the "shake to shuffle" feature, maybe your action of setting it down is being taken as a shake.  I have mine turned OFF in Settings - Playback - Shake, because I use my nano for running, and it would often interpret something I did as a shake, and skip to another song.

  • Satellite A200 crashing when moved or when CPU usage is too high

    Alright so fairly recently my Toshiba Satellite A200 has started crashing whenever I pick up the laptop or run any processes that take the CPU usage up to around 100%.
    This essentially means no 3D rendering or games and no running Photoshop and iTunes at the same time etc. Here's the kicker though, it only happens when the laptop is plugged in and not when on battery power alone. I've already tried using a different AC adapter and I cleaned off the hard drive for a fresh install of Windows 7 neither of which fixed the issue. I even went so far as to update the BIOS.
    I am not fairly determined that this is solely a hardware issue but I was wondering if anybody had any suggestions as to which part may be acting up on me. Like I said it still works like a dream when running on battery power.

    hi Cyborg771,
    it seems to be related to the ac-in jack..
    is there any change or symptom when moving the ac-plug?
    also the circuit that is managing the power supply could be the "bad guy"
    if the contact to the powerboard isnt good, the circuit starts to check the state every 10ms..this will slow down your machine...
    how old is your notebook?
    still got warranty on?
    a solution may be to solder/fix/change the jack
    or see a servicepartner

  • E-mail changes to unreadable text when moved to another mailbox folder

    Hi,
    when moving a correct received e-mail to another mailbox folder, the mail and the attachment will change to unreadable text and it looks like the column below.
    On my iPad and iPhone the mail and the attachment is shown correct. If I forward it to my own account again, the mail is also correct shown an my imac27, as long as it resides in the in-box.
    On the other hand, there are lots of mails+attachments with "normal" behavier when moved.
    Any idea about that?
    mackliko
    ------=_NextPart_000_0001_01CCF256.3C7DD310
    Content-Type: multipart/alternative;
              boundary="----=_NextPart_001_0002_01CCF256.3C7DD310"
    ------=_NextPart_001_0002_01CCF256.3C7DD310
    Content-Type: text/plain;
              charset="us-ascii"
    Content-Transfer-Encoding: 7bit
    ------=_NextPart_001_0002_01CCF256.3C7DD310
    Content-Type: text/html;
              charset="us-ascii"
    Content-Transfer-Encoding: quoted-printable
    <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
    xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
    xmlns=3D"http://www.w3.org/TR/REC-html40">
    <head>
    <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
    charset=3Dus-ascii">
    <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
    <style>
    <!--
    /* Font Definitions */
    @font-face
              {font-family:"Cambria Math";
              panose-1:2 4 5 3 5 4 6 3 2 4;}
    @font-face
              {font-family:Calibri;
              panose-1:2 15 5 2 2 2 4 3 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
              {margin:0cm;
              margin-bottom:.0001pt;
              font-size:11.0pt;
              font-family:"Calibri","sans-serif";}
    a:link, span.MsoHyperlink
              {mso-style-priority:99;
              color:blue;
              text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
              {mso-style-priority:99;
              color:purple;
              text-decoration:underline;}
    span.E-MailFormatvorlage17
              {mso-style-type:personal-compose;
              font-family:"Calibri","sans-serif";
              color:windowtext;}
    .MsoChpDefault
              {mso-style-type:export-only;}
    @page Section1
              {size:612.0pt 792.0pt;
              margin:70.85pt 70.85pt 2.0cm 70.85pt;}
    div.Section1
              {page:Section1;}
    -->
    </style>
    <!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext=3D"edit">
    <o:idmap v:ext=3D"edit" data=3D"1" />
    </o:shapelayout></xml><![endif]-->
    </head>
    <body lang=3DDE-AT link=3Dblue vlink=3Dpurple>
    <div class="3DSection1">
    <p class="3DMsoNormal">Mfg<o:p></o:p></p>
    <p class="3DMsoNormal">Martin lanzinger<o:p></o:p></p>
    <p class="3DMsoNormal"><o:p> </o:p></p>
    </div>
    </body>
    </html>
    ------=_NextPart_001_0002_01CCF256.3C7DD310--
    ------=_NextPart_000_0001_01CCF256.3C7DD310
    Content-Type: application/pdf;
              name="Test.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
              filename="Test.pdf"

    Please run /cleanviews switch to check the result.
    (Type "Outlook.exe /cleanviews in Windows search bar and press ENTER.)
    Please also create a new Outlook profile to check if the issue still persists. Thanks.
    Tony Chen
    TechNet Community Support

  • Image size changes when moving an image between Lightroom and CC.

    Image size changes when moving an image between Lightroom and CC.
    I opened a .dng image in LR and then opened it in the Develop module.  I clicked on Crop Overlay and then on the ‘As Shot’ drop down menu (the lock is closed) and cropped to 11 x 17 and clicked ‘Done’-.
    I click Cntl-E and the image opens in CC.  There I click on Image > Image Size and the Image Size  is 13.288 inches by 20.533 inches.
    Why does the image size change?
    I believe there is a menu to control the size of the image and I've looked everywhere I can think of in LR and CC, I googled various descriptions and I checked two of Scott Kelby's books, but I just can't figure out how to keep the image a consistent size when moving between LR and CC.
    Help!...Please?

    The penny will drop soon or maybe the cloud will lift.
    In Lightroom all editing is undoable/nondestructive.
    Hence a crop of 3x2 is not inches, centimetres, pixels or anything else. It is jst a ratio. When a file is exported, either to PS or disk, then the crop ratio has size determined in respect of pixels and inches or cms.
    So my 6000x5000 pixel image I will crop to 3x2 that leaves (before exporting) a 6000x4000 file.
    Now when exported it can be set to export at
    100pixels per inch and will end up at 60x40" when printed.
    200pixels per inch will end up at 30x20"
    300ppi will end at 20x13.3"
    You will notice in the Crop Tool there are no size denominations such as inches or centimetres as an image file only has pixels and the determination of size is done through exporting or printing.
    Hope that helps somewhat..

  • HT4930 My mouse suddenly started lagging when moving up and down. Left and Right seem to move fine. Waht's wrong?

    My mouse has suddenly started lagging when moving up and down. Left and right movement seems fine. in fact, it's perfect. I tried changing the tracking speed to no avail. it sped up the left and right movement, but "up and down" still remain sketchy. HELP!!

    Hi Torrence,
    You may have to suffer until you can get to your local artist's products store.   There you should be able to buy square metres of fine matt black felt (maybe in a shop selling materials too).   This makes an excellent and inexpensive base that looks good too.   Have used it for years.
    Lay it on your desk and hold it in position with some double sided sticky tape.

  • TS2167 I changed my header in iweb and when I published the site the font had shrunk and it displayed incorrectly. It was only on my home page, not on others. I have iweb 3.0.4. Help!?!?

    I changed my header in iweb and when I published the site the font had shrunk and it displayed incorrectly. It was only on my home page, not on others. I have iweb 3.0.4. Help!?!?

    Just in-case anyone els runs into this, I figured it out... I was working from my hotel and apperantly the fire wall was not allowing anything to uplaod, but I wasn't getting an error message from iweb, it would say that everything was published succesfully even though it wasn't. Once I went home and used my connection eveything worked fine.

  • HT1751 I have moved my library from an external hard drive into my laptop music file but I am not able to open i-tunes when holding down the shift key as advised in step 4 and thus not seeing the library option box - any tips please??

    I have moved my itunes library from old computer to portable hard drive and then on, into new laptop, in music file. However I am then unable to open I-Tunes when holding down the shift button as directed in step 4 - this means I am not seeing the library choice box and cannot synch the tunes into ITunes library - any tips please?........Alan

    Close iTunes. Click the icon to launch iTunes and immediately press and hold down the left shift key. Keep holding until prompted to choose or create a library. If iTunes opens normally, close it,  and try again.
    tt2

  • Can i make a button change anchor link when you scroll down the site?

    I am trying to make a scroll site.. and i have navigation buttons on the right, a full menu, but also a "1 topic up" button and "1 topic down" button.
    Is there any way that i can have those buttons change anchor link when you scroll down the site.
    Example:
    I am at home, then i press "1 topic down" and gets scrolled to the next topic on the website, but then i cant make the button change to link to the anchor below that, so the button becomes useless after that 1 press.
    Is that in any way possible in Muse to make it change link?

    Hi
    You can try to create different buttons on page positions where down scrolling will be active with separate button actions. For example you click on "I topic down" , page scrolls and there is another button placed with "Next Topic down" , on click this would scroll the page more and similarly along the length of page.
    Button with anchor link scrolling down the page cannot be used for different anchor links, creating different buttons with anchors is the solution.
    Thanks,
    Sanjit

  • Make positive vertical position change = UP when moving object? CS6

    When moving an object, entering a positive value for vertical position sends objects DOWN. How do I reverse this such that entering a positive value will move objects UP?Thanks.

    What about the suggestion in the first post in this thread, Reasoner?
    http://forums.adobe.com/message/3859580#3859580?tstart=30#3859580
    It is more work than using a script (was linked to in post #4 in the other thread).
    We may have to ask Carlos to make a new script that works in CS6 (and in CS7 and CS8 and so on).
    Carlos, what say you?

Maybe you are looking for

  • Making a 2G Nano appear as an IPod Shuffle?

    Automatic conversion of my lossless music to something smaller, AAC 128 is a feature that I think is quite necessary for the Nano. Obviously the Nano will not hold many songs at the lossless music file sizes. Duplicating my large music collection jus

  • Can Java do this job?

    Hi all, I just thinking about writing a program that can display the caller ID. The problem is: When a user using dial-up access the internet, the program can detect the caller ID if somebody dial the user's number. Of course, caller ID can be displa

  • Removing specific folder from time machine help!

    I had a drive die that had only specific folders backed up. Large files sizes. How do I remove them from time machine now that the drive is gone. I read that you can use the gear menu to remove the back up but it does not seem to work. and since it's

  • I'm trying to import my old "on myMac" mail folders from my 4 yr old MacBookpro to my new macbookpro.    Help.

    I'm trying to import my old "on myMac" mail folders from my 4 yr old MacBookpro to my new macbookpro.    Help.     I didn't have iCloud or me mobile.    I searched apps but can't find anything that addresses this problem.   I liked the old mail progr

  • $$$ Non-fatal error (1202): Foreign Key 'FCM_1_CO_OWNER(Owner_Id) reference

    Hi All, We are getting below fatal error while repairing the repository. and we are using MDM SP07 Patch Level 27. Error Message: $$$ Non-fatal error (1202): Foreign Key u2018FCM_1_CO_OWNER(Owner_Id) referencing A2i_CM_Users (UserId)u2019 is missing.