Jtable stop mouse hover over column headers

i have a jatable and when i move the mouse over the column headers
it does the hover effect and highlights the column header
in this particular table i don't want any sorting or column moving, so i want to disable this effect
i have looked through the JTableHeader api's but i am not sure which one to use to turn it off. i tried .setFocusable(false) but that didn't seem to work
any suggestions ?
thanks in advance
alex

by default, JTable does not have the hover effect, highlights of the column header, and sorting. you must have implemented these in your codes.
as for the column moving, you may try this:
setReorderingAllowed(false);

Similar Messages

  • How to display item when mouse moves over Column value??

    Hi there
    It would be helpful if you could resolve the following :
    i) I need to display the column 'A' values of my report in a Text field when mouse moves over column B of my report.
    ii) I can able to display the same column value when mouse moves over or onclick happens. but my requirement is something like i have to display the other column value when mouse moves over.
    iii) Also i noticed that, i can able to display the item only on "Display only Item" and not on Text field.
    Any pointers to display my column value in Text field when onclick happens on my report column?
    iv) One more thing that i noticed, i can able to perform onclick or mouse over only on Editable column and not on
    non editable columns.
    Any pointers on how to achieve the same when mouse moves over Non editable column of report?
    Reference: I have created a dummy application (refer the following link), where i can able to display column value Salary on display only item using mouse move Event.
    My requirement: when i click column Ename , the text field should show salary.
    http://apex.oracle.com/pls/otn/f?p=56045:1
    User:guest
    Pswd: apex_demo
    Any pointers on this would be appreciated.
    Thanks
    Vijay

    Vijay,
    If you use Jquery then this should do the trick.
    $(document).ready(function() {
       $(".t20Report t20Standard tr").hover(function() {
         $("#P2_SALARY").attr("innerHTML",$(this).find("td:last input").attr("value"));
    {code}
    after looking at the source of your page it seems that your class for your report region is *class="t20Report t20Standard"* I am not 100% sure but you might have to correct that in the template. I am not sure how the selector will handle the space in the class name.
    Hope this helps,
    Tyson                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • SJSE8 JTable creation doesn;t show column headers

    I am a swing/applet newbie. I am using SJSE8 GUI Editor to create an applet containing a JTable. When I use the table poperties to set the column headers and defaults data, I see the data but not the header. What am I doing wrong? The generated code follows:
            jTable1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 0, 51)));
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][]
                    {"Elimination", "NFL", "$100+$10", "21/100", "June 1st", "Open", "$2100.00"},
                    {null, null, null, null, null, null, null},
                    {null, null, null, null, null, null, null},
                    {null, null, null, null, null, null, null}
                new String []
                    "TYPE", "Sport", "Price", "Players", "Closing", "Status", "Prize Pool"
                Class[] types = new Class []
                    java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
                boolean[] canEdit = new boolean []
                    false, false, false, false, false, false, false
                public Class getColumnClass(int columnIndex)
                    return types [columnIndex];
                public boolean isCellEditable(int rowIndex, int columnIndex)
                    return canEdit [columnIndex];
            jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS);
            jTable1.setCellSelectionEnabled(true);
            jTable1.setMinimumSize(new java.awt.Dimension(340, 90));
            jTable1.setTableHeader(null);

    Try to place JTable inside of JScrollPane.
    Generated code:
        private void initComponents() {
            jScrollPane1 = new javax.swing.JScrollPane();
            jTable1 = new javax.swing.JTable();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                new Object [][] {
                    {null, null, null, null},
                    {null, null, null, null},
                    {null, null, null, null},
                    {null, null, null, null}
                new String [] {
                    "Title 1", "Title 2", "Title 3", "Title 4"
            jScrollPane1.setViewportView(jTable1);
            getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
            pack();
        }

  • Custom Mouse, Hover Over Effect [AS2]

    Hi y'all,
    So I like the idea of a custom mouse pointer, but I really need to keep hover over effects.
    So this flash will be on top of my html page, so it looks cool, but I want people to still tell if they are on a link by displaying a mouse like the one you see when you hover over things.
    Does anyone have any ideas for how to do this?
    Thanks,
    Christopher

    Good question... never done that before, but took a stab at it for you. Try the below out.
    Change the movieName var to the name of your swf file.
    Change the path to the correct scope and frame label of your cursor.
    thisMovie(movieName).TGotoLabel("_level0/myArrowMC/","normalState");
    <script language="JavaScript">
    var movieName = "Untitled-1";
    function thisMovie(movieName) {
      // IE and Netscape refer to the movie object differently.
      // This function returns the appropriate syntax depending on the browser.
      if (navigator.appName.indexOf ("Microsoft") !=-1) {
        return window[movieName]
      }            else {
        return document[movieName]
    function movieIsLoaded (theMovie) {
    // Checks if movie is completely loaded.
      if (typeof(theMovie) != "undefined") {
        return theMovie.PercentLoaded() == 100;
      } else {
        return false;
    function mouseOver() {
      if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/myArrowMC/","hoverState");
    function mouseOut() {
      if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).TGotoLabel("_level0/myArrowMC/","normalState");
    </script>
    <a href="www.google.com" onMouseOver="mouseOver()" onMouseOut="mouseOut()">Google</a>

  • How to change a file name or insert something into it without having to make the mouse hover over it, often opening the image instead?

    Huurah for Apple, most of the time....But in soime matters I miss my old PC. This business of having to hover the mouse over a text is something I just cannot master. Is there a better way??

    I can only guess at what you are asking.
    If you want to rename a file without selecting it, there isn't a way.
    You can just hit Return to get into the Rename mode, but you have to do something to select the file, first.

  • Show some text when mouse hover over a component

    Hi,
    I would like to show a couple of lines of text, just to the right hand-side of the component (kind of a mini-pop up menu) everytime the mouse hovers on that component. The focuslistener is in place and working, but I don't know how to implement this 'popup' menu. I don't need to select any of the lines or perform any action on them, just showing them
    thanks

    thanks, that's the component I was looking for (assuming I can now change the fonts, colour etc)
    I have done the following and it kind of works: it should highlight the text and show the tooltip. However, it kind of gets stuck every now and then...two things: it takes some time before the tooltip appears (1 sec): is there a way to make it immediate, simultanous to the highligh? also, I have a few Jtextfield, as you may remember..as I hover the mouse over each of them, it all works fine, but when I go back to a jtextfield previously hovered over and highlighted, nothing happens, until I randomly click around and then works again. Any ideas? thanks a lot
    myJTextField.addMouseListener(new MouseAdapter(){
                     public void mouseEntered(MouseEvent e) {
                        ((JTextField) e.getSource ()).requestFocus();
                        ((JTextField) e.getSource ()).selectAll(); // highlight the text
                        ((JTextField) e.getSource ()).setToolTipText("text");
                       

  • JTable, stopping navigation into hidden columns?

    Hello,
    In JTable I have done .setPreferedWidth(0) along with every other width setting =0; I did this to hide columns which are necessary but uninformative to the user like primary key ids. The problem is that you can still hit tab, shift-tab, and right arrow which will put the "focus" in the hidden columns, effectively 'losing' the cursor for the user.
    How do I fix this?
    I've tried using focusLost listeners but they don't fire every time I need. When a user starts editing a cell by arrow-keying over then just typing (never double clicking), then subsequently exiting the cell using the tab key or right arrow, I don't get the event to fire.
    I've also tried a KeyListener, but this doesn't work every time I'd expect.
    Any help would be greatly appreciated!!!

    There is a way to make the navigation keys skip the column with a width of zero, but the real question is how badly do you want to get it done? If you want it bad enough, then I suggest you override JTable's processKeyBinding method and for every navigation key (up, down, left, right, tab, shift-tab, home, end, etc., etc., etc.) check to see if it lands on such a column, if so manually move to the non-zero column in the direction of the key -- otherwise, let JTable's own processKeyBinding method consume the event.
    ;o)
    V.V.
    PS: If you are one of those people who don't like to go down to the low level, you can add as many InputMap/ActionMap to take care of these keys.

  • Mouse Hover Over Popups

    The code editor covers over the Name, Value, Type Tooltip while debugging with a popup showing Schema type data. It pops up in other areas too. ie: hovering over the connection tree objects.
    You can see it in my screenshot as a blue box at:
    http://imageshack.us/photo/my-images/828/popupn.png/
    It hangs there for a few seconds and goes away.
    Does anyone know how to not have this popup.
    I looked in Tool|Preferences but nothing turns this off.
    Thanks

    Hi,
    So that means you have tried playing with all of these Tools|Preferences?
    Mouseover Popups. Disable any smart popups that use Hover only without <Alt>, <Shift>, <Ctrl>.
    Debugger|Show Tool Tip in Code Editor While Debugging.  Uncheck this.
    Debugger|Tool Tip.  Here you can deselect Value and Type, but not Name. Regards,
    Gary
    SQL Developer Team

  • Sharepoint Custom calendar – Hover over the date to add a new item is not working – Sharepoint 2010

    Hi,
    In my Sharepoint visual web part i am using default sharepoint calendar view. But Mouse hover over the date to add a new item is not working. Please see this image below i need the same add new item functionality. 
    

    Hi Sudhanthira,
    Couple of simmilar queries i can see from Madhu posted.
    Please follow this thread:-
    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/b62f9b7e-2ce1-4efd-905c-9cc5471ad216
    To be or Not to Be..The question is this only......

  • Mouse hover doesn't produce preview in an application

    I use a Bible program called Logos 5. For months I have had an issue where my mouse hover over a reference doesn't produce a preview, but only in one area of the program - my personal notes.
    Recevied an email from the comany that said,
    That specific tool tip is one that we are relying on Apple to make a call back to us for it to appear. What this means is at some point you, or a piece of software you’ve installed, or changed settings from, has modified the Apple tool-tip settings which is, in this case, disabling that tool-tip. The fact that it does appear when you hold down a modifying key also points to the fact that this is a system setting that has been modified.
    Any clue what program or setting could have interfered? I do not have this problem on an older iMac with the same program & files loaded.

    Hi All,
    I have got LabVIEW 8.0. I make a VI for discovering BT targets. It works fine on my computer and also fine when I make a application.
    I don't have any problem with this function and the discovering of BT
    target. I made the test of the PC of my collaegue and It works fine too.
    Two tests done : One with a own Vi and an own application on my PC  ==> everything OK
                                One with the Vi and application of Aquila1981 from the folder "rest.zip" (see first thread)==> everything OK
    My config : Win XP Pro ver 2002  SP2
                      Pentium IV (3,4 Ghz)
                      1 Go of RAM
    Targets : Pocket PC Asus A620 BT
                   Sony-Ericsson Mobile Phone K750i
    BT stuff : BT USB Stick
                    Manufacturer : Broadcom ==> Blutonium BCM2035 BT 2.4 Ghz Single Chip Transceiver
                    Driver version : 5.1.2600.2180
                    Firmware Revision 00.04
    Let me know if you have some problems.
    Julien Roland
    AE of NI Belgium
    www.ni.com/support
    Julien Roland - District Sales Manager
    NI Belgium - Technical Support
    Don't forget to rate a good answer

  • Resizable menu items on mouse hover

    Hello
    I need to make a resizeable menu like the menu.gif picture I uploaded. For example the menu to have 5 or 6 elements doesnt matter the problem is to make them adjustable on size (will be different movie clips each one) on mouse hover over each one of them but also snap like this. If someone have any code that could help me please tell me
    Thank you all!

    thank u i ll search it!

  • Cant see jtable column headers

    I have my jtable in a container and i am displaying that container in a jframe. I cant see the table column headers. I cant use a jscrollpane and need to make the table headers visible. I can see the table fine with all its information in it. When I do a System.out.println(TableModel.getColumnName(int)); i get the correct column header name so I know that the column headers are existing. I would appreciate any help that you can give

    the last answer did not help me out. I reposted this with more information, such as i am placing my table in a container and not in a scrollpane. I added the code below and it still did not work
    content.add(jt.getTableHeader(), BorderLayout.NORTH);
    content.add(jt, BorderLayout.CENTER);
    I can still only see the table. I pasted code below where I create my table and repaint it. I have it set up where my table is in a JPanel. I have is set up so that I can move it around and resize it with the mouse. This all works and I can see the table but there are no headers.
    public FigTable(DefaultTableModel inTableModel, LEditor inLEditor)
              super(50, 50, 350, 200);
              setLineColor(Color.blue);
              setFillColor(ColorMenu.kColorOfNoFill);
              fEditor = inLEditor;
              content = fEditor.getGEFPanel().getDrawingPanel();
              importTable(inTableModel);
              fEditor.init();
              fEditor.inval();
    public void importTable(DefaultTableModel inTableModel)
              jt = new JTable(inTableModel);
              tRows = jt.getRowCount();
              tColumns = jt.getColumnCount();
              content.add(jt, BorderLayout.CENTER);
              content.add(jt.getTableHeader(), BorderLayout.NORTH);
    public void paint(Graphics g)
              jt.setBounds(_x, y, w, _h);
              if (_h >= tRows && tRows != 0)
              jt.setRowHeight(_h / tRows);
              if (isSelected())
                   drawHandles(g);
              if (_filled && (getFillColor() != null))
                   jt.setBackground(getFillColor());
              if (getLineColor() != null)
                   jt.setGridColor(getLineColor());
                   jt.setBorder(BorderFactory.createLineBorder(getLineColor()));
         }

  • Resize column width for JTable without column headers?

    Hi,
    I find that for me to resize columns of a JTable by using
    mouse dragging, I MUST have column headers and then drag
    column headers to resize them. Is my understanding correct?
    Actually, I need to have a table without header columns.
    How can I use mouse to resize column width by dragging?
    The background for this request is that I am putting a
    complex table as another table's column header and I hope to
    be able to resizing the complex table by mouse dragging.
    Thanks very much,
    David

    Hi,
    I think you have mistake there. Try
    <style type="text/css">
    table.apexir_WORKSHEET_DATA td {
    white-space:nowrap !important;
    td[headers="DESCR"] {
    width:300px !important;
    max-width:300px !important;
    #apexir_DESCR {
    width:10px;
    max-width:300px !important;
    </style>And you can try add
    table.apexir_WORKSHEET_DATA {
    width: 100% !important;
    table-layout: fixed !important;
    }Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • I dont know how but I've managed to lock my keyboard and trackpad on my macbook pro. The mouse works a little bit but flitters when i hover over anything. Please help

    I dont know how but the keybaord on my laptop, doesnt want to work. I am using a usb one to type this and its fine its just not very convinient. It was working perfectly fine this morning and this afternoon it just stopped. I havent spilt anything onto it so i dont understand whats happened. My trackpad does work but the mouse flitters over everything and when i want to click its like its permantly on the right click hwere the lise comes up with all the other information like copy, paste, close tab etc.
    I need help fast as am a university student with a dissertation to write and a deadline on tuesday. Im not comfertable taking out the battery and anything like that. Also i dont understnad all the mbp stuff so just plain english if you can help would be very appriciated.

    You may have to take the computer to the Apple store to have the computer checked out.
    Dead line is tuesday?
    1. Try an external USB keyboard.
    2. This may help.
        http://support.apple.com/kb/PH10680
    3. Virtual keyboard
        There is a virtual keyboard available in OS X 10.8.4
        System Preferences > Keyboard
        Checkmark the box beside "Show Keyboard & Character Viewrs in menu bar.
        Click "Input Sources"  and then "Show input menu in menu bar".
    Best.

  • I accidentally quit my CC on my Macbook pro and now the cloud icon is grayed out and every time I hover over it with the mouse I get the spinning beach ball of death on the icon. I have no idea how to open it because when I use spotlight search to open it

    I accidentally quit my CC on my Macbook pro and now the cloud icon is grayed out and every time I hover over it with the mouse I get the spinning beach ball of death on the icon. I have no idea how to open it because when I use spotlight search to open it it gives me a message saying "Creative Cloud is not open anymore" help!

    Since you didn't include any pertinent info such as the Mac model and OS version you are running, here is some general information:
    Mac OS X: Gray screen appears during startup
    Depending on which OS yours came with originally - and which OS you are now running - you would either need your original install disks - you can call Apple for replacements by giving them your serial number. Or you may be able to reinstall the OS by using recovery (again, depends on which model/which OS).

Maybe you are looking for

  • How Do I Add a .edu email to my iphone?

    i wanted to add my school email to my iphone but i have no idea which outgoing server thing to put in. my school email is really difficult to use to begin with so im not sure where to find the server information. does anyone out there have their .edu

  • Acrobat 9 standard : form and import xml

    Hi all, is it possible to import xml data into a pdf form with acrobat 9 standart ? i don t have the 'form' menu. A friend can import xml under acrobat 8 standard, i tried to install version 8, but i can t find any form menu too.... In the online doc

  • Foreign languages

    My customer has asked that I come up w something that will interchange the english text in my vi to a foreign language.  He said something about including an *.ini file.  Not sure I have a full grasp on what he wants.  I think what he was getting at

  • Doubt about interfaces in "final Runnable closerRunner = new Runnable()"

    Till this date i think that interfaces can not be instantiated because they dont define methods.But one line of code found in a sample program(creating splash screen)creates lots of confusions to me.The line is as follows: final Runnable closerRunner

  • Need help finalizing breadth-first search function...

    I have a map with bidirectional links and I am to find the shortest path so the first path found will be good for me. I tried follow the algorithm for BFS and it shows below. However, I am not sure when/where/what I should return per loop. I would li