Can't get rid of the JTable's white column divider

I want a JTable that has no grid lines and no space between cells, with or with out headers. Basicly all cells should butt against each other with no grid lines.
So far I have succeeded with this, with a exception to some white divider that is about 2 pixils wide that separates each column. I tried every JTable, Header, Column Model, Table Model, Cell Renderer, etc method that sounds like it. Nothing seems to work.
If anyone knows how to do this, or has any ideas please post them...
Thanks,
Rodney

Not sure exactly what you are wanting, but here is some code in which the grid is gone. Basically, I have just set the "setShowGrid" parameter to "false". You can uncomment out the "setBackground" line and see that it works with other backgrounds.
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
public class TableTestFrame extends JFrame
    public TableTestFrame()
        super("Table Test");
        setSize(300,150);
        getContentPane().setLayout(new GridLayout(1,1));
        JScrollPane scrollPane = new JScrollPane();
        getContentPane().add(scrollPane);
        JTable table = new JTable(5,5);
        //table.setBackground(Color.black);
        table.setShowGrid(false);
        scrollPane.getViewport().add(table);
        addWindowListener(new WindowAdapter()
            public void windowClosing(WindowEvent event)
                dispose();
                System.exit(0);
    public static void main(String[] args)
        (new TableTestFrame()).setVisible(true);

Similar Messages

  • I have a Australian iTunes account and want to switch to using the u.s store as I now live there, I cannot do this because I have $1.41 still in the oz account an image to have a zero balance to change stores, how can I get rid of the $1.41?

    I want to switch to the u.s store as I now live in the us, I cannot switch stores because my balance is $1.41 in the oz store and needs to be zero, how can I get rid of the $1.41 when everything costs more or less than that? I do not have a credit card on the oz iTunes account an I cannot use my us one to top it up.
    HELP

    Click here and request assistance.
    (60992)

  • How can I get rid of the dark area on top one third of my iphone screen which spoils my background image?

    How can I get rid of the dark area on top one third of my iphone screen which spoils my background image?
    It seems this problem is caused by the software to increase the readibility of upper letters (clock battery etc.) It be nice to leave us the control of choosing background letter color too if we are using brighter images or darker images.
    I'm using iphone 4s and it appeared after I updated to new patch. 7.1.1.
    Thanks,
    Cem
    I do not know how to move topics from sections of forum so I apologise for duplicate post.
    https://discussions.apple.com/message/25594879#25594879

    Photo added.

  • I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup

    Hi,
    According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
    Roger Lu
    TechNet Community Support

  • I have an iPhone 6 with IOS 8.1.3 and when I use the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can have the whole screen to what I am browsing?

    I have an iPhone 6 with IOS 8.1.3. When I go to the landscape view in Safari, the bookmark page appears and takes up one half of the screen. How can I get rid of the bookmark page so I can use the whole screen to what I am browsing?

    OOPS! Too quick on the trigger to ask that question without trying anything. Sorry. Solved it by touching the bookmark icon.

  • How can I get rid of the accumulation of the backups in the Macintosh HD of my new MBA 13.3'' ?

    How can I get rid of the accumulation of the backups in the Macintosh HD of my new MBA 13.3'' ?

    My best advice is that you stop worrying about the backups that TimeMachine is making on your MBA. First, these local backups are only made when TimeMachine should perform a backup but your computer isn't connected to TimeMachine. Once you reconnect your computer to TimeMachine it makes a backup and the local backups are deleted. Second, TimeMachine stops making local backups when your free drive space dips below 80%. So the local backups aren't going to take over your computer.

  • How can i get rid of the small box in the middle of my screen

    How do i go about getting rid of the box in the middle of my screen that offers stuff like webify and to sign up to you guys. i really hate that box being there.
    one more question " how do i go about getting the rid of the restore session box everytime i close my home page, i dont want to restore at times i just want to close my home page and when i open it up be at my home page.

    Ok, I fixed it, thank you but I still have another question I set google to be my main screen but now I have about 3 search bars one in the middle of the screen and to on top. My question to you is how can I get rid of the middle search bar on the google screen and just have the two on top?

  • I have a new iPad. I am using Comcast as my email provider but when I send a message, it pulls up the facebook email addresses for my  contacts  instead of the addresses stored in my comcast account.  How can I get rid of the Facebook email addresses? The

    I have a new iPad. I am using Comcast as my email provider but when I send a message, it pulls up the facebook email addresses for my  contacts  instead of the addresses stored in my comcast account.  How can I get rid of the Facebook email addresses? The comcast addresses are stored in the comcast (xfinity) app.  I do not use the "mail" or "contacts" apps ....I go straight to comcast (xfinity).  I wish I could start over!!!  thanks.
    iPad

    I could be wrong, but it sounds like Facebook imported to your contacts.  I have the Xfinity app on my new ipad, too, but none of my stored contacts from the online version are showing, only what I manually entered into the iPads contacts are there.  When I did add the FB app, I did not grant it permission to push and pull from my ipad (not a fan of FB knowing every detail about me), so that may be where our difference lies.  You could try to open the app and change your privacy settings, or delete it and then reinstall without granting permissions to integrate.
    I'm sure someone here with a lot more knowledge then me can probably diagnose your issue better, though.  Good luck!

  • Since I synced my ipad to my iMac I have duplicate photos appearing in the Photo section on my iPad and one can be trashed but the other one can't. How can I get rid of the ones without the trashcan?

    Since I synced my ipad to my iMac I have duplicate photos appearing in the Photo section on my iPad and one can be trashed but the other one can't. How can I get rid of the ones without the trashcan?

    Thanks so much. I was afraid to mess with that.  But when I unsynced them, it worked.

  • How can I get rid of the Flash Drive password?

    I have recently purchased a 16Gb USB stick. When I plugged it in (Win 7 Ultimate) it came up as enhanced storage and I created passwords.
    Now I cannot use it on Vista or Xp computers. On vista I right clik and select unlock but nothing happens. On XP the it shows up as removable disk and when I click on it it ask to insert disk.
    How can I get rid of the password - in win 7 icant have a blank password for it

    Hey,
    In your case i would contact Toshiba memory support. You can give them a call or write an e-mail, have a look on Toshiba memory page:
    http://www.toshiba-memory.com/en/service_support.html
    Have you created the password using U3T software? On the same Toshiba page there is a FAQ article how to remove U3T Launchpad software.

  • How can I get rid of the highlight in the list box

    I clear the T-List in WHEN-NEW-FORM-INSTANCE trigger using Clear_List(list_id). The list will be empty but it will highlight on the first entry in the list.
    How can I get rid of the hightlight at this kind of situation?
    Thanks

    If you want to change countries and can't spend it then you can try contacting iTunes support and ask them if they can remove the balance so that you can do so : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • After deleting a song from my iPhone, it still playing. How can i stop that? How can i get rid of the song once for all?

    After deleting a song from my iPhone, it still playing. How can i stop that? How can i get rid of the song once for all?

    I'm pretty sure that the solution is in the settings of her email

  • Desktop Manager "disconnected" and I can't get rid of the error message

    I just purchased a Blackberry Curve 8530, running v5 software, my computer is Windows 7. I installed the 501_b073_multilanguage software that I downloaded from Blackberry's website. When I launch the Desktop manager I get this message: "Before you begin, verify that your current BlackBerry device is connected to your computer." The troubleshooting posts I've seen on this forum include many tips (the ones I've tried are below). One in particular I can't do is "The desktop manager is showing "disabled."
    -Make sure that the user has gone into the desktop manager and selected options > connection settings > detect."
    ... because I can't get rid of the error message dialoge box, and I can't click on the options menu in the BB Desktop Manager.
    I have tried the following:
    uninstalled it and reinstalled it twice - 2nd uninstall was a "hard" uninstall where I deleted the registry files by hand
    moved the cable to the USB port in the back (after trying both the ports in the front) of the computer
    restarted the computer many times
    hard booted the phone by removing the battery
    plugged in, removed, and replugged in the phone.
    Also:
    The phone is installing correctly when I plug it in, but the software still doesn't seem to see it.
    In the Device Manager, the BlackBerry is showing up under Portable Devices. Double-clicking on it gives me the reassurring "This device is working properly." message.
    The Com1 port is working properly also, according to the Device Manager.
    Double-clicking on the device manager icon to get the properties shows that the Com1 port is "disconnected" -- when I try to configure it it just pops back to the disconnected state.
    If someone has an idea or something I haven't tried I'd sure appreciate it!!
    Thanks!
    K
    Solved!
    Go to Solution.

    Okay, folks, after a 3 1/2 hour phone call with a (very patient) telephone support person at Blackberry, here's what I learned.
    You can check your USB drivers this way:
    Plug in your phone into your USB drive. Assuming your Blackberry is "seen" by your computer...
    Go into the Device Manager on your computer (control panel)
    Expand the Universal Serial Bus controllers item on the bottom of the list
    Right-click on BlackBerry Smartphone and choose Properties
    Click on the Driver tab
    Click on the Driver Details button
    You should see one driver. I saw two. The one the BlackBerry likes is the RimUsb one.
    So here's what NOT to do: We tossed the entire driver that was the "extra". This effectively made using my mouse and keyboard impossible, as they are USB, and sent my poor husband into the basement to find a million-year-old keyboard (and then a mouse) with the old fashioned kind of connectors (PS2). Bleh. Don't do that.
    Here's what I did that worked (not saything this will work for you -- this modifies the Registry so better do a system backup with that backup and restore if you're nervous about this sort of thing):
    From the start menu, choose run, and type regedit to get into the Registry editor.
    Follow this file path: Computer, HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Control, Class
    Click on: {36FCE60-C465-11CF-8056-4445535400000}
    If there's an item on the right called "UpperFilters", delete it. (see pictures)
    Hope this helps someone.
    Karin
    First pic: shows "before"
    Second pic: shows full file path and "after"

  • Can't get rid of the beeping noise!(SOLVED)

    Hey guys, so I can't get rid of the beeping noise of my laptop.
    I have an Acer Aspire 722. Every time I plug or unplug the power, it beeps. And the really annoying one, everytime I backspace, it beeps.
    I've tried going into alsa and muting beep. I put !pcspkr in modules in rc.conf.
    I don't know what else to do?
    Help will be extremely appreciated. Thanks.
    edit: unrelated but something I want to resolve. I get these debugging messages, and found to get rid of them I have to set loglevel= 3 in grub. How do I do that? (SOLVED)
    Also, I'm having an issue with x-org. Every time I try to download it, it says it is missing a file. So I figured maybe it is a mirror problem so I went to change my mirror. Pacman keeps trying to use my old mirror even when my mirrorlist does not have that mirror commented out. I also checked pacman.conf and no mirror is being loaded in there with a server=mirror syntax.
    Not sure what is happening?
    Last edited by lettuceman44 (2012-03-06 05:59:22)

    karol wrote:
    lettuceman44 wrote:What does it do/why did it work?
    Please read the man page :-)
    -y, --refresh
               Download a fresh copy of the master package list from the
               server(s) defined in pacman.conf(5). This should typically be used
               each time you use --sysupgrade or -u. Passing two --refresh or -y
               flags will force a refresh of all package lists even if they
               appear to be up to date.
    (emphasis mine)
    Edit:
    lettuceman44 wrote:Also just a question out of curiosity. I have a working connection, but I thought I needed the x window system to run a browser which is what I need to post here right?
    Or am I missing something?(linux newbie here )
    Nah, you do need a browser, sorry ;P
    You should have some simple text-based (links and elinks) on the CD you used for installation, but they may be a bit intimidating to use if you're new.
    Thanks!
    I've pretty much have solved all my problems now. Feeling good
    Just one last thing I need to deal with
    Waiting for Edev uevents to be processed
    edevd[114]: seq 1068 '/devices/pci0000:00/0000:00:15.3/0000:07:00.0' killed
    Bringing up loopback interface
    udevd[114]:worker [141] terminated by signal 9 (Killed)
    What does this mean? It "looks" bad, but I don't know what it means lol. Google isn't helping and it could be normal for all I know.
    Last edited by lettuceman44 (2012-03-03 09:57:15)

  • Can I get rid of the underlined hyperlink and just have roll-over links?

    In iWeb 2009, can I get rid of the underlined hyperlink and just have roll-over links?

    You have to put them on the server where you are publishing your site to. Where are you hosting your site? If it's a MobileMe account then you have two options:
    1 - put the photos in a folder, name it "Pics" and put that folder in your iDisk/Pictures folder. Then use the following URL: http://homepage.mac.com/YourMMe_Account_Name/.Pictures/Pic/FileName (don't forget the period before Pictures).
    2 - put the "Pics" folder with image files in your iDisk/Web/Sites folder and use the following URL: http://web.me.com/YourMMe_Account_Name/FileName.
    If you're hosting on a 3rd party server it would depend on if you're using a domain name or not. I'm not familiar with 3rd party servers so Wyodor, Ethmoid or someone that is will need to point the way.

Maybe you are looking for

  • Simultaneously latching multiple counters (AKA "strobe")?

    How do you simultaneously latch values in multiple counters, at arbitrary times, for later reading? A physical system generates several kinds of events to be counted by different counters, none of which events are strictly periodic or mutually synchr

  • MacBook Pro and Virgin Media Broadband (Router WNR2000)

    Hi there...I'm having issues with my brand new macbook pro and virgin media broadband wireless. I share an internet connection with 4 people wirelessly in a house..We have 20MB broadband, and have been supplied by Virgin with a netgear wireless n rou

  • No "Synchronize with Control Panel" option in the Surround Mi

    Hi! I have the Audigy () LS and have to adjust both: the speaker settings in the Surround Mixer and the settings in the Windows Control Panel (due to the missing synchronization). Does anyone have an idea how to solve the problem?Message Edited by ba

  • [Solved] obconf 2.0.3 won't start after upgrading to openbox 3.5.2

    $ obconf obconf: error while loading shared libraries: libobrender.so.27: cannot open shared object file: No such file or directory $ cd /usr/lib $ ls libobren* libobrender.a  libobrender.so@  libobrender.so.29@  libobrender.so.29.0.1* obconf should

  • Validation Framework

    Is there a validation frame work available in JavaFX 2.0.3 FXML? I have a requirement to validate an email address entered in a text field. I am thinking about having a label defined in defined in my controller and set the appropriate text when some