How to not display the column heading in the table view?

I don't want to display the column header in the table display, how I can make?

If you use JavaFX 8, you can use the following text in an external style sheet:

.table-view .column-header-background {
  -fx-pref-height : 0 ;
}

If you use JavaFX 2.2, the - fx-pref-height attribute is not available in css, so I think that you must resort to a search:

final Region tableHeader = (Region)table.lookup(".column-header-background");
    tableHeader.setPrefHeight(0);

As always, I am obliged to point out that I don't really like the research. Sometimes, they seem to be the only way, however.

Tags: Java

Similar Questions

  • JTable with custom column model and model table does not display the table header

    Hello

    I create a JTable with a custom table model and a custom column template. However the table header is not displayed (Yes, it's in a get). I have narrowed the problem down in one compilable example:

    Thanks for your help.
    import javax.swing.*;
    import javax.swing.table.*;
    
    public class Test1 extends JFrame
    {
         public static void main(String args[])
         {
              JTable table;
              TableColumnModel colModel=createTestColumnModel();
              TestTableModel tableModel=new TestTableModel();
              Test1 frame=new Test1();
    
              table=new JTable(tableModel, colModel);
              frame.getContentPane().add(new JScrollPane(table));
    
              frame.setSize(200,200);
              frame.setVisible(true);
         }
    
         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
              columnModel.addColumn(new TableColumn(0));
    
              return columnModel;
         }
    
         static class TestTableModel extends AbstractTableModel
         {
              public int getColumnCount()
              {
                   return 1;
              }
    
              public Class<?> getColumnClass(int columnIndex)
              {
                   return String.class;
              }
    
              public String getColumnName(int column)
              {
                   return "col";
              }
    
              public int getRowCount()
              {
                   return 1;
              }
    
              public Object getValueAt(int row, int col)
              {
                   return "test";
              }
    
              public void setValueAt(Object aValue, int rowIndex, int columnIndex)
              {
              }
         }
    }
    Published by: 802416 on October 14, 2010 04:29
    added
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    See http://download.oracle.com/javase/6/docs/api/javax/swing/table/TableColumn.html#setHeaderValue (java.lang.Object)
    When the TableColumn is created, the default headerValue is null
    So the header ends up rendered empty label (probably of size 0 if the JTable calculates its size of header based on the size of the default rendering tool).

    It worked:

         private static DefaultTableColumnModel createTestColumnModel()
         {
              DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
                    TableColumn col = new TableColumn(0);
                    col.setHeaderValue("Header Title");
              columnModel.addColumn(col);
                    return columnModel;
         }
    

    Published by: jduprez on October 14, 2010 14:09
    Beaten by a fraction of a second!

    Published by: jduprez on October 14, 2010 14:10
    OK, by a split of 17 minutes, specifically: o)

  • will not display the table correctly; displays OK in Internet explore all versions

    Table will not correctly display in Firefox; Removes the first section of < b >... < /tr >, move the section 2 of < b >... < /tr > right. The table shows correctly in all versions of IE.

    You should never use several hyphens in a comment.
    Firefox will toggle the status comment after that each two hyphens (-), if you need a lot of luck with this many as in this case:

    <!----------------------------------Geograhphy, etc. ------------------------------------>
    

    Firefox treats the code that follows as comment until the next two "-" found in the next section. You can see through view > Source of Page as green comment.

    <!---------------------------------- Accessibility ------------------------------------>
    

    You're code here shows a < td > additional vacuum that causes a column empty to appear to the left, if that's what you mean.

    <!--<center>-->
    <TR align="center">
    <td>
    <td>
    <Font color="#ff00cc">
    <h2>Charleston</h2></font></td>
    <td>
    <Font color="#ff00cc">
    <h2>Savannah</h2></font></td>
    <td>
    <Font color="#ff00cc">
    <h2>Recommendation</H2></font>
    </TD>
    </TR>
    <td>

    You can use the DOM Inspector to examine the code.

  • How can I display the table of contents for the iPod Touch to 6

    When I opened first of all iPod Touch Users' Guide, I used the table of contents (TOC) to locate and access sections in the manual. But, after looking through the manual for awhile, I tried to return to the table of contents, but it wasn't there! I have tried various things to see if the table of contents are being hidden, or if in some way, it has been deleted. Anyone can shed light on this mysterious event?

    What is the version of iBooks that you speak? There is an online version here: https://help.apple.com/ipod-touch/9/ Aha, I see the table of contents on the left disappears if you zoom before or make the narrow window and reappears if zoom you out or make it larger.

    TT2

  • How to not display the path when converting a file to PDF in the contextual menu

    When I click with the right button on an html file and choose Convert to PDF, Acrobat places the original file path and date of creation at the bottom of the pdf file, how can I stop it this?

    excellent, thank you. For future readers:

    1. Open acrobat
    2. Click on create
    3. Click on create web page
    4. Click settings...
    5. under PDF settings uncheck "place headers and footers on the new page.
    6. Click ok
  • How can we copy the tables, views, etc in one database to another?

    I do not have a solid DBA experience, but was put in charge of the update and the migration of a number of tables and views across several databases.

    I need a workflow better than export and import of tables from files .csv and copy and paste the code SQL of each individual view for the future.

    Can someone point me in the right direction? I am happy to be reading, but have no idea where to look.

    What you need is Tools - Database Export or copy of the database, but if there is a lot of data, the Data Pump will be so much faster. 1 command line for export, to import 1. DP works better for selected drawing or export complete (so also ideal for backups). The export of the database of Sqldev is nice to review, add, or remove the generated script, so more for small interventions and scripting.

    Have fun
    K.

  • Watch not the tables, views,... in vs2010

    Hello

    I installed ODP.net + ODT (11i) for use with vs2010 & oracle 10.02.0010 (upgrade to oracle 11).
    The product is installed correctly, I can connect to the database using ODBC and PACO.
    However, when connecting with the ODP in vs2010 I do not see the tables, views, or stored procedures (can not see anything really). When you use ODBC, everything works: I see all the tables, views, etc. which are in the database, and I can ask questions them.
    I also tried to run a query by using the ODP.net and it gave me: ORA-00942: table or view does not exist.

    I did a search on the forums, but none of the planned solutions, nothing changed for me.

    Someone at - it ideas?

    Published by: user13493229 on 18-mei-2011 11:05

    Hello

    First of all, make sure that you see "ODP.NET" in the connection to Server Explorer dialog box.

    Then, check the tab "Filters" of the connection dialog box. By default, we block public synonyms and schema objects that you do not own.

    If you still do not see objects, then most likely your DBA not gave you enough privileges to use these tools.

    Try looking the advice I gave in the following thread explaining how to enable tracing ODP.NET. First glance to see that the SQL involved in the ORA-942.
    Then look at the other SQL we deliver and see why you are not able to get all the lines of the.

    VS2010 ORA-00942 table or view does not exist

  • My explore menu does not display the drives. How can I solve this problem?

    Original title: hard drives

    My explore menu does not display the drives.  How can I solve this problem?

    Hello fpiraro,

    Thanks for the return of the response.  Please visit the link below and let us know the status.

    My drive does not appear in Windows Explorer

    http://support.Microsoft.com/kb/330140

    • Microsoft Windows XP Professional
    • Microsoft Windows XP Home Edition
    • Windows Vista Business
    • Windows Vista Business
    • Windows Vista Home Basic
    • Windows Vista Edition Home Premium
    • Windows Vista Starter
    • Windows Vista Ultimate Edition
    • Windows 7 business
    • Windows 7 Home Basic
    • Windows 7 Home Premium
    • Windows 7 Professional
    • Windows 7 Starter
    • Windows 7 Ultimate
  • How can I click apply when switching back resolution lower when the window does not display the Apply button when

    How can I click apply when lower resolution when the window does not display the button apply because the resolution is too low

    Hello

    Try pressing the ENTER key on the keyboard instead.

    See you soon.

  • How to print a selection of an image in photoshop CC, I have problems because in the print window does not display the full image and the printed only a section of what I SELECTED

    How to print a selection of an image in photoshop CC, I have problems because in the print window does not display the full image and the printed only a section of what I SELECTED

    Hi jodepepevalentin,

    In the print menu, check "scale to fit media" under the Position and size of the device and then check out.

    If you want the area selected for printing, check "Print selected area" under the Position and size and specify the size.

    Kind regards

    Claes

  • WatchOS3 does not display the title of alarm?

    I just upgraded to iOS10 and WatchOS3 and I noticed that if my sensors that I put on my iPhone turns off, they do not display the label. It just says: alarm and Snooze, and make buttons disappear. Am I missing something here? I'm sure they use to show when the alarms are triggered. I know it's a small thing, but it's weird not to see it that the alarm is for.

    Hello

    You're not missing anything - it's how the application currently operates (10.0.1 and watch OS IOS 3).

    If you want the name of the alarm to be included in / restored to the notification on Apple Watch, you can submit a request here:

    (Don't forget to mention watch OS 3 in your comments - the option is currently not in the version list).

  • My Firefox has just automatically updated itself to the version 42. The extention under modules page does not display the extensions I have installed.

    My Firefox has just automatically updated itself to the version 42. The extention under modules page does not display the extensions I have installed. The plug in page shows the plug ins I installed. How can I fix it? This happened on my 64 bit Windows 7 partition. I installed the extension "classic add-on" to see if she could solve the problem. There is unfortunately no. I have a screenshot. I'm not sure if I have permission to upload it to the media gallery. I also use Linux, but I did not upgrade that are still there.

    It is possible that there is a problem with the files that store the registry extensions.

    Delete the files (extensions.json, extensions.sqlite, extensions.ini) extensions.* and compatibility.ini in the profile folder of Firefox to reset the extensions registry.

    New files will be created if necessary.

    See "extension corrupted files:

  • After installation or upgrade to Firefox 31, starting Firefox does not display the home page, personalize displays a blank page and the radio button does not work

    I am the admin of Windows for a University Department and install PC with Firefox all the time. This problem does not occur with every PC I would maintain, only a selection bit (model different laptops with Windows and update 1 8.1.) Until today, it has happened with the new user (with admin rights) accounts that I place on laptops for our staff. Today, this happened with the account administrator while setting up a new laptop. In all cases so far, I have install Windows from a registered image that was created by using sysprep.

    I tried many suggestions to reset Firefox, removing the profile of Firefox users, removing the Windows profile users, uninstalling/reinstalling Firefox, uninstall/reinstall of Firefox and the latest Java, but nothing helped. After uninstalling, I run an application to delete the caches and temporary files and even remove manually the keys to register HKLM\SOFTWARE\Mozilla and HKCU\SOFTWARE\Mozilla. I restart and make sure that the installation folder is deleted after uninstalling.

    Results are the same: after installing Firefox 31, the initial settings for migration, IE or Chrome pop up and after having clicked on the button finish, Firefox starts but does not display the home page of the new user, only a blank page. By clicking on the Options (3 bars) button does nothing. Right click in the appropriate box, the shortcut menu appears, so I can choose to customize, but which opens another tab with subject: Customize the URL and the page is blank. In the right click context menu, I can activate the menu bar and get options from that.

    My last attempt helped a little. I uninstalled Firefox 31, cleaned, removed the profile user Firefox, rebooted and then installed Firefox 30. Initial start-up runs and tells me that I'm not up-to-date and the works of button Options. But I can't always customize.

    Then I upgraded to Firefox 31, but then it's back to no start page, no options button and no customization. I can go down to 30 and get customize practically works again.

    Addon only is for McAfee Scriptscan to Firefox 15.1.0, just after installation is disabled.

    Any help would be appreciated. Thank you.

    You can try a different theme of Windows?

    Have you tried to start the computer using Windows safe?

    Start the computer in Mode safe mode with network support Windows (on the startup screen, press F8) as a test.

  • Sidebar calendar gadget will not display the months or days - my Recycle Bin icon is not on my desk

    Original title: Calendar Sidebar Gadget / recycle Logo

    I added calendar Sidebar Gadget - it worked very well for years and suddenly the firm timetable.  It will not display the months or days and I can not open the pages.  That's happened?

    Recycle the icon was on the desk, but disappeared and has left a space on the desktop.  How to get back in place on the desktop?
    I hope someone can help.  Thank you.   Jeanne

    Hi Jeanne,

    Take a look at the answer provided in nets below the link to solve your problem in calendar view:
    My Microsoft calendar gadget is displays a blank page, rather than the current date / month calendar

    Then try to use the Microsoft Fix It provided in the link below to get the trash on the desktop:
    How can I make the Recycle Bin on my desktop in Windows Vista or Windows XP?

    Hope that helps.

  • Firewall settings is enabled, disabled and cannot open the Web page in Internet Explorer: "IE can not display the webpage".

    Original title: how to manually configure the firewall?

    Let me know how I can configure my firewall setting manually as it is said that your firewall setting is disabled. I have HomeXP, SP3. I am now faced with another problem with IE8 when I try to open another page, I find this error-"IE can not display the webpage". Sometimes, it works when it is updated and not some time.

    Hello

    1. do you use third-party security software that runs on the computer firewall settings?
    2. What is the error code / message displayed when trying to turn on the Windows Firewall?
    Please follow these steps in the KB article to turn on the Windows Firewall.
    Step 1
    How can I turn on or turn off the firewall in Windows XP Service Pack 2 or later versions?
    Step 2
    How to enable Internet Connection Firewall in Windows XP
    Follow the steps in order and read the content.
    See also,

    "Internet Explorer cannot display the webpage" error in Internet Explorer

    http://support.Microsoft.com/kb/956196

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings


    I hope this helps.

Maybe you are looking for

  • Where EarPods replacement?

    My EarPods that came with my iPod Touch 6 G started at its lowest. I mean, it's only the left side of his fort that right. The iPod is not the problem because I checked it with other headphones. I was wondering if I bought my iPod Touch into Best Buy

  • Where 9.1 Safari stores bookmarks?

    Where Safari 9.1 doesn't store bookmarks on my Mac? What is the location of the folder? What is the format and name? I want to do a specific copy of it in his file and on a USB key to carry around with me.

  • Install the new hard drive, I have no os or backup recovery disks

    I have a HP G62-340US notebook pc-product # XH066UA #ABA, OS is windows 7 64 bit.   The hard drive does not work so I'm relpacing with a new.  I have no os disks and any backup recovery.  When I turn on the laptop there that peripheral black splash s

  • Problem starting Windows

    My computer windows says the usual power falier signs that give you a choice of starting in the following modes. -Safe Mode -Safe Mode with networking -Safe mode with command prompt -Last good Configuration known (your most recent settings that worke

  • Activation of Labview for Mac OS

    Hello I installed LabView on my Mac, but quite some features are not available, as it always is in evaluation mode. I'm never asked to take a license or activation code product and can not find how to do this manually or (it appears under the Help me