How to scroll the JTable to see all the cells in the row?

Hi,
I am using JTable and I want to scroll through the cells so that I can see all the cells in the JTable.
Please help me.
Sharma

Hi,
You can see the example that i am sending with this .
import javax.swing.*;
import javax.swing.table.*;
public class ScrollTable
     public static void main(String[] args)
               TableModel dataModel = new AbstractTableModel()
                              public int getColumnCount()
                              { return 100; }
                         public int getRowCount()
                              { return 10;}
                         public Object getValueAt(int row, int col)
                              return new Integer(row*col);
               JTable table = new JTable(dataModel);
               JScrollPane scrollpane = new JScrollPane(table);
               scrollpane.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
               table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
               JFrame frame = new JFrame();
               JPanel panel = new JPanel();
               panel.add(scrollpane);
               frame.getContentPane().add(panel);
               frame.setSize(300,300);
               frame.setVisible(true);
Hope this helps you.
Deepak

Similar Messages

  • How to see all Expired Quotations in the System?

    Dear all,
    How can we see all expired quotations in the system.
    Thank you

    Hi,
    In se16 and table VBAK use the field BNDDT and AUART as the order type for quotation.
    Regards,
    Saurabh

  • The computer that I first used to download iTunes is no more. I have a new computer that I set my wife up on.  While I can see all my music in the iTunes library I cannot sync my iPod

    The computer that I first used to download iTunes, to buy songs and to sync my iPod Nano to iTunes is no more.  I have a new computer that I inadvertently set my wife up on.  When I sign in, while I can see all my music in the iTunes library, when I tried to 'sync', I have lost all my music in my iPod and I now have my wife's library on there instead.
    I subscribed to iTunes Match, thinking that this would help.  It hasn't and I'm not happy!
    I have arranged to take my iPod into an Apple store next Tuesday but isn't there something you can tel me to do that ties my iPod wth my music and leaves my wife's music for her iPod?  Please help, I am so frustrated and have wasted so much time on this, reinstalling iTunes, restoring my iPod....
    Can anyone help? 

    Have you read for possible solutions over in the "More Like This" thread over here?----------------------->
    Check out the following KB Articles:  http://support.apple.com/kb/HT1329 How to use your iPod to move your music to a new computer
    http://support.apple.com/kb/HT4527 iTunes: How to move your music to a new computer

  • I have 3 airport express units, an Ipod and a PC.  I used the PC to set up an airTunes and the AirUtility can see all three of the airexpresses.  The Ipod displays all of the airexpresses and I can pick any one to stream music to. PC won't - any ideas?

    I have 3 airport express units, an Ipod and a Windows 7 PC.  I used the PC to set up an iTunes/airTunes and the AirUtility can see all three of the expresses.  The Ipod displays all of the expresses and I can pick any one to stream music to. The PC won't - any ideas? AirUtility tells me the 7.5.2 version of the firmware is the latest for the expresses and ITunes is also reporting that there are no upgrades available.  I get an error code -15000 when I try to connect from the PC to one of the expresses.

    How do I configure the AX to connect to the hub's wireless network? It will only scan one base station Airport Express at a time in the Airport Utility. I think what I am trying to do is use the hub as a router to the two AX's. Is there a specific way to set this up?
    To set up the AX to join a wireless network as a "Wireless Client," using the AirPort Utility, either connect to the AX's wireless network or temporarily connect your computer directly (using an Ethernet cable) to the Ethernet port of the AX, and then, try these settings:
    Launch the AirPort Utility.
    Select the AX.
    If not already connected to the AX's wireless network, go ahead and switch to it when prompted.
    AirPort Utility > Select the AX > Manual Setup > AirPort > Wireless
    Wireless Mode: Join a wireless network
    Network Name: <type in the network name/SSID of the wireless network that you want to join or select it from the pop-up menu>
    Wireless Security: None OR, if you are using security on your wireless network:
    Wireless Security: <Select the appropriate level of security for the existing wireless network: WPA/WPA2 Personal | WPA2 Personal>
    Password: <enter your wireless network security password>
    Verify Password: <re-enter the same security password>
    Click Update to write the new settings to the AX.

  • I shared my project and saved it as .mov but when i reopen the fcp the project is one big clip, and now i cant re-edit the video, cant see all the clips, just one big clip,,,pls help, i need to make some changes to the project..thanx

    I shared my project and saved it as .mov but when i reopen the fcp the project is one big clip, and now i cant re-edit the video, cant see all the clips, text's, effects, etc..... just one big clip,,,pls help, i need to make some changes to the project..thanx

    Hi Stephen, thanx...
    Yes, we are talking about FCP X...this is the thing:
    I worked on a project a few days ago and went to share - export movie.
    Today, i opened the FCP again, to make some changes, and when i enter to the project, it shows me as one big clip.....i dont see it says compound clip....and i tried anyways pressing break appart clips...but nothing....could it be that i made it compound before exporting it..? if so how can i recover the un-compound version >?
    I tried to import the saved .mov file, but it opens the same....as one long clip...
    Pls help...thanx.

  • How do I stop my MacBook removing all my icons from the desktop ?

    How do I stop my MacBook removing all my icons from the desktop ?

    Hi Matt
    After I create say a word document, file it on my desktop and then shut down my machine. The next time I open up the MacBook the file icon has been removed from the desktop. I can still retrieve the file in a folder labeled with the month I created it. But why has the OS removed it from the desktop and how can I stop it happening?
    It happens to alias icons as well!
    Regards

  • Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    You can each have your own ID for your own iTunes accounts, but in order for a device to stream via AirPlay to the same Apple TV, everything must use the same homesharing ID. This is not the same as your iTunes account ID (although it can be for one of the devices)

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

  • The songs on my Ipod Classic wont play at all although you can feel and hear the machinery working hard. The tracks are not playng at all but you can see the Ipod rewinding them all and returning to the album. And this happens to the second IPOD I have!

    The songs on my Ipod Classic wont play at all although you can feel and hear the machinery working hard. The tracks are not playng at all but you can see the Ipod rewinding them all and returning to the album. And this happens to the second IPOD I just got!

    First off, I would STRONGLY suggest that a external hard drive would make you life much easier by at least being able to back up your songs on the external drive for when you need them. Even if you don't want them in the iTunes library, you can have them all ready on the external to be re-added as needed. You can get 100's of gigs for under $100 shipped.
    Anyway, since you used Yamipod, are all the songs back on the computer? If so, I would go ahead and restore the iPod, let iTunes then resync everything back to the iPod, then switch it back to manual and see if the restore and resync clears up the issue.
    Patrick

  • TS1440 I followed all of the directions after seeing that my laptop flashed the folder with the question mark. But when I went to disk utility to repair/ verify issues w/ start up disk it would not allow me to.button to repair/verify is there but cant be

    I followed all of the directions after seeing that my laptop flashed the folder with the question mark. But when I went to disk utility to repair/ verify issues w/ start up disk it would not allow me to. The buttons to repair and modify we're there but they were grey and couldn't be pressed.

    Were you trying to repair the disk you were booted from? You can't do that - you need to boot from your install disk, and choose 'Disk Utility' from the 'install' menu.

  • How do you install mountain lion on all your macs in the household using one 20 dollar license?

    how do you install mountain lion on all your macs in the houshold with the same license (you only pay 20 bucks for all your macs) is that right?

    As long as they're all logged into the Mac App store with the same Apple ID, you can re-download the installer to all the Macs.
    Or you can save a copy of the installer file before you run it and use that to update the other Macs. The ML installer file will appear in your Applications folder when it's done downloading. Copy it to another location (don't move it).
    If you don't copy it before you upgrade, it will disappear when ML is finished installing.

  • I just upgraded from snow leopard v10.6.8 to os x mountain lion and my scroll bar has disappeared on all my applications on the internet. does anyone know a patch to get the scroll bar to work.

    i just upgraded from snow leopard v10.6.8 to os x mountain lion and my scroll bar has disappeared on all my applications on the internet. does anyone know a patch to get the scroll bar to work.

    Open General preferences in System Preferences. You can set the desired scrollbar behavior there.

  • How do I apply the blur filter to all my layers at the same time?

    Hi I'm working on a background for a web page and I want to try how different filters are going to affect all the layers. Is it possible to apply a filter to all the layers without flattening the file first? Thanks very much,
    Cathy

    Thanks very much , that's really helpful,Cathy
    Date: Thu, 23 Dec 2010 11:18:21 -0700
    From: [email protected]
    To: [email protected]
    Subject: How do I apply the blur filter to all my layers at the same time?
    Hello!
    There is no need to flatten the file, but you can create a layer that merges all the content of the image, and apply the filter on that layer.
    Target the topmost layer, by holding the Option and . (period) keys, then create a merged copy by holding down Command Shift Option E.
    >

  • What happened to the option to see all your purchased movies alphabetically?  I can only see recent purchases and then I have to look by movie type.  With over 500 movies purchased this is a huge pain.

    What happened to the option to see all your purchased movies alphabetically?  I can only see recent purchases and then I have to look by movie type.  With over 500 movies purchased, this is a huge pain.  For instance the movie Airport 77 is classified as Drama not action?  But it is action?  I have to look at both types to find the film.  I will stop buying films via AppleTV if this is the way it is going to stay.  I am not searching for films in this crazy manner.

    Same issue here. Might have to do with size of library. I too have over 300 purchased movies. "ALL PURCHASED" folder disappeared yesterday on all my AppleTV's. My son only has 20+ purchased movies and his still shows "ALL" folder. However, I had him log in under my account and "ALL" folder is missing??? I hope Apple gets this resolved quickly. I too do not want to flip through various Genres looking for movies.

  • What is the tcode to see all the workitems with out agents?

    Hi Gurus,
    What is the tcode to see all the workitems with out agents?
    Thanks in advancec

    SWI2_ADM1
    Thanks
    Arghadip
    Edited by: Arghadip Kar on Feb 21, 2008 5:45 AM

Maybe you are looking for