OutOfMemoryError on Jtable with not 'that' much data

Hi,
Im getting outofmemoryerror when using my jtable. The dataset is collected from an xml file at the moment (soon to be changed to mysql as were getting too much data for xml) but anyhow, of course it depends which pc you are on, but when accessing our programs applet sometimes we will get this outofmemoryerror with only 1056 lines. Now I know lots of people are going to say just cut down the number of lines displayed, use a filter, etc etc, and we are working on adding a filter, but for now I need all of the lines to be displayed, and well I have seen people displaying 10,000 lines or more before getting this error.
Maybe I am doing something simple wrong. Please take a look.
Im not really sure what code to supply you with, as the StudyTableModel wont be of any use really....
Im just after some advice really. Why do you think I am getting my OutOfMemoryError with so few rows?
Thanks, and if you want any code supplied, then just ask :D
James

I meant profiler, sorry typo.
Wikipedia explains it best: http://en.wikipedia.org/wiki/Profiler_%28computer_science%29
You'd want a memory profiler.
If you're still a newbie than getting this stuff to work might seem like a big task and could take some time, but in the end it will definitely be worth it, since knowing where your problem is is much, much better than guessing ;-)

Similar Messages

  • Anybody experiencing an unusual amount of data usage? Like there's no way your possibly using that much data?

    Anybody experiencing an unusual amount of data usage? Like there's no way I'm using that much data???

    Many people complain of this, but depends on if it is a JetPack-type device or a phone.  Usually comes down to a phone turning off its wifi when asleep or idle, or apps running wild in the background, or a hotspot device with many connected devices.

  • I have a iphone 5...I had 2k pics on it and as I kept adding more I got the storage is full message so I deleted all pics off and now I have only 300, a handful of apps and not that much music and I am getting this message again!!!! help please

    I have a iphone 5 and I used to have 2k pics on it well I kept getting the " no storage is available" message so I deleted all of them and now  I have 300 and a handful of apps and not that much music or videos and the message is coming up again..can someone shed some light on this for me? I have just about had it.

    bring it to your local apple store, they will be able to target your problem accuratley.

  • I love my neighbour but not that much

    Since purchasing my new macbook I can now see a list of other 'available networks' in my airport drop down menu (could never see these on my powerbook.. but maybe thats the power of airport extreme for you) Obviously I always log on to my default but I was wondering if anyone could be piggybacking onto my adsl connection without me realising and taking up bandwidth. Is there a way to check and indeed to restrict?
    THE BLACK MACBOOK   Mac OS X (10.4.6)  

    I'm guessing BabbleFish's translation of the Spanish manual is a little lacking? ;-(
    The most common URLs for accessing a router via a browser are http://192.168.1.1 and http://192.168.1.254 (check the router’s manual and/or the manufacturer’s website). Have you checked the manufacturer's website to see if there's an English translation of the manual available?
    If you never entered a password to connect to your preferred network the first time (after which it'd be stored in Keychain), then your WiFi Access Point (WAP) or base station or WiFi modem (there are almost as many names for that as there are for USB thumb drives) would indeed be wide open. There should be options in the router's setup page to enable security; look for the initials WPA (best but requires a security server), WPA-PSK (good), and/or WEP (better than nothing). Note that most WAP's will show WPA when they're really WPA-PSK. Also look for numbers; the longer the number of bits used for the password key, the better (a 128-bit key is better than a 40-bit key).
    You can get some additional WiFi security by setting the WAP to not broadcast it's network name. The network can still be used if you already know the name, and there are sniffer programs that can find a WiFi network not broadcasting it's name, but going quiet on the name does block most casual snooping. Look in the modem's browser setup for "SSID" (Service Set Identification) to see if you can disable broadcasting it.
    I haven't found a good utility for checking who's on a particular net, but you can check your own computer's IP number (in System Preferences> Network> TCP/IP) and then use Applications> Utilities> Network Utility to manually ping through the address range used by your WAP; e.g., if your Mac shows an IP of 10.0.1.2, start pinging at 10.0.1.3 and head on up --- if the WAP's router is assigning IP numbers via DHCP, it should start at .1 and go on up to .255

  • Merging queries with not exact matching data

    Hi fellow Webi and OLAP bods
    Does anyone know how I can merge data from 2 different queries where the data is not an exact match?
    I have one query where the key is
    001
    002
    003
    004
    etc
    and another where the key is
    AAA001
    AAA002
    AAA003
    BBB004
    etc
    basically they are the same thing but the second has this prefix in the data that I am not interested in.
    If it were on oracle or some other relationanl data source I could clearly create a new object in the universe that used substr(mykey,4,3) and they'd match fine but both queries are on SAP BW datasources and I wanted to know if I can do this anyway without having to wait for our BW team to create me a new object in BW.  I'm guessing my only options are with some neat MDX in the universe (I'm on xi 3.1) or with some clever stuff in the report......
    Maybe I'll just do it in excel with vlookup......(again!)
    Thanks
    Nick

    Since I don't have the same set of data that is why I cannot replicate on my system so don't take my answer as final answer.
    If both fields have the same data type then you can do and if you dont want to see the prefix then you can use formula and hide it.
    Let me know if it works.
    Bashir Awan

  • Ipad shows 12.5 gb capacity and 1.0gb available but cant find that much data on ipad

    i ipad shows that i have only 1 gb of storage left but i dont have very much on it as far as apps less than (2gb in total when i add them up). i do have 2 gb of movies and less than i gb of music and pictures combined.

    I would suggest the following steps;
    1. Back up your iPad to iTunes on your Computer.
    2. Disconnect your device once done.
    3. Back up to iCloud on your iPad.
    4. Sign out of iCloud on your iPad, then sign back in again.
    5. Reset your iPad by pressing the Home button and the Sleep/Wake button simultaneously for about 15 seconds.  After a few seconds, the display will go black - keep both buttons pressed all the time though - and then the display will come back on white, with a black Apple logo.  Then let go of the buttons, and let your iPad reboot as normal, entering your passcode if used, when prompted.
    6. Then reconnect to iTunes on your computer, and you should see your data has come down.
    Don't worry, you won;t lose any data at all by resetting your iPad as described above.
    Hope this helps.

  • Problems with query that uses date as filter .

    I have an application and it's have a form automatically generated by Apex, through a View. That view use instead of triggers to update , insert and delete, because the view use many tables..
    But always that I run a query using filters, setting a period of date, some dates show data, but the majority not, even if they have data on the database.
    I even looked for the datas in the table on Object's Browser and filter by the dates that has the problem and they showed the values registered on these dates.
    But I don't have a idea why it doesn't show these values when I run the query.
    Exemple of query used : select * from coresp where data_2 between '22/05/09' and '22/05/09';
    this query return two lines, but in object's browser return more than 100 lines .
    Edited by: user9537971 on 09/06/2009 07:01
    Edited by: user9537971 on 09/06/2009 07:01

    Hi,
    You need to make sure that SQL knows that these are dates by using the TO_DATE() function:
    select * from coresp where data_2 between TO_DATE('22/05/09','DD/MM/YY') and TO_DATE('22/05/09','DD/MM/YY')Andy

  • Help with notes that disappear from IPad and iPhone?

    Help! My notes on the iPad keep disappearing from my IPad then from my iPhone. The notes are showing in yahoo ok. I type my notes  and then they are there for a short while then disappear. I share one apple account with my husband so we do not use the iCloud for notes so that we keep them separate. On his IPad when you go to settings/notes he can then show under default yahoo, iCloud and on my IPad. On my IPad it just shows yahoo under default. How can I sort this? Use to work fine before the upgrade.

    Welcome to the Apple Community.
    First check that all your settings are correct, that notes syncing (mail and notes on a computer) is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the notes you are adding are added to your 'iCloud' account and not an 'On My Mac', 'On My Phone'  or other non iCloud account (you can do this by checking in accounts on an iOS device, or the left side panel in mail on a computer), non iCloud notes will not sync.
    If you are sure that everything is set up correctly and your notes are in the iCloud group, you might try unchecking notes syncing (mail and notes on a computer) in the iCloud settings, restarting your device and then re-enabling notes syncing.

  • Timeselector on graph with not regular intervals date

    Hello,
    Could you help me, I try create something like that http://jdevadf.oracle.com/adf-richclient-demo/faces/feature/graph/timeSelector.jspx
    But my query does not contain dates in regular intervals, there any solutions to this problem?
    Thanks.

    ivelson wrote:
    you can use "scan from string" or "format to string" function to convert text files (string - either its your data or your date/time) into numeric and time stamps. and feed to your graph.
    That does not work if you're having a plot where the X points are not equally far away from each other.
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012

  • Do I really have that much data that is labeled movies?

    My "About this Mac" says that my macbook pro storage has over 60 GB of movies, when I maybe have 20 GB.  How can I find all of my data that would be labeled under this?  I want to clean up my hard drive and get rid of a bunch of data that is irrelevant to me.

    Download from the Internet OmniDiskSweeper (free) and open it.  It will show all of your files and the respective sizes.  Delete from your internal HDD the ones you do not wish to keep or transfer the data to an external HDD.
    You may have to have Spotlight re-index the internal HDD in order to correct the category sizes.
    Ciao.

  • TS3989 Since I unloaded os7 and started using I cloud, the photos taken are smaller. when you look through the viewer of the I phone, I have lines top and bottom. In short, the pictured I'm now taking are smaller with not as much content. Any one have any

    Since I unloaded OS7 and started using I cloud, the photos taken are smaller. The picture doesn't take up the whole viewer of the I phone. Therfe is a line,top and bottom. Any suggestions?

    Hi shldr2thewheel,
         it has been a while since we have last spoke, I would like to let you know, I am still working on getting used to the switch from windows to a Mac/Apple system. I do have a new question for you, I did purchase In Design CS5.5 through journeyed.com through Cuyahoga Community College of which I attend as a student, is there a way to purchase an online book through iTunes to learn that as well? Also, you know me, the struggling student, I would also, when and if the book can be purchased through the iTunes, would need to know if you do know of a much easier book for struggling students like myself and at a reasonable price as well for the In Design CS5.5 program. Our campus bookstore had closed early, and, so did the colleges library and our local library here where I do live, so, I cannot go to either place to purchase a book or to take out a book, plus cash funds are low at this moment as well but, I do have money left on the iTunes account to use, if it can be used. So, can it be used, the iTunes money, towards finding a low priced online book? I am in great need of assistance as I have a project due for my one course for this Tuesday, September 4, 2012.
    Sincerely in need of help once again,
    Kim

  • I have over 3,000 photos/videos from 4S iphone and need to get them to my new, "my passport studio(1Tb)" but no iphoto on passport... not that much space on mac book too... is there an easier way

    I take lots of photos/videos of my kids and my iphone is hooked up to my macbook-pro and then new-my passport (1Tb) and having problems on transfering them to external hard drive (my passport). "My passport" does not have iphoto so I can't use it as a start up hard drive to my computer... I can't download on computer because it says it is full...
    any suggestions,
    thxs,

    Move the Library to the Passport?
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • IPad Air using too much data

    I recently purchased an IPad air for my wife for Christmas.  We live in a remote area with no high speed internet.  We use an AT&T 4G hotspot for our internet access.  We subscribe to a 5gb per month plan.  Prior to Christmnas my wife had an older IPad.  We rarely went over the 5gb plan.  Ever since Christmas we have exceeded 12gb.  She doesnt watch movies on the ipad, she rarely goes on the internet either.  99% of the time she is on Facebook, Candy Crush or words with friends.  I installed a data monitoring app on her ipad, but it only tells me how much data she is burning, but not how much data each individual app is burning.  I found an App for my Iphone that does track this, but they do not make it for the iPad.  Anyway, I have tracked my wifes usuage and in one day just playing those games she is burning 250mb+ per day.  We never had this problem on her older Ipad.  What is going on?

    That is a great arrangement fo your house, but makes it hard to troubleshoot!  If the pad thinks it is on wifi, then it will not hesitate to update stuff etc.  But that still is a ton of data.
    Using the hot spot, do you have the any ability to monitor your usage anywhere near real time.  My experience with AT&T data reporting is that it lags by a day or two - to the point that trying to pin down a culprit just wont work well. 
    So you may be left back to trial and error -
    1. system updates are usually big.  If you got the thing new at x mas you had the initial load, 10s7, 10s7.1 and ios7.1.1
    2.     webpages with a lot of graphics can be big.  (turn on restrictions, and limit the time she can surf.  while you sleep on the couch...)
    3.     subscriptions?  that auto update daily?
    4.     photo stream?
    i cloud backups?
    5.     streaming music while she surfs?
    Probably the best solution is simply to move to an area where you can get decent broadband.  /s
    I guess, use your data monitoring app - no candy crush on Monday, no facebook on tuesday, etc, and see if you can nail it down.
    There is an app I have called 'system'.  I am not sure if it was free or paid, but there are some tools burined in there.  On the overview page there is a data in and out (wifi) since last boot.  You can use that daily, or even task specific, and track what your daily or app based usage is.  Would take some work, but it would work.

  • Time machine backs up too much data repeatedly

    Since May 2010, my 500GB WD external HD (connected to an AEBS via USB) performed spectacularly; often backing up data several times per day.
    Then, all of a sudden a few months ago the TM icon in the finder bar showed that it was backing up 20+GB when I had not made any changes to THAT much data. Seeing how this continued for a while, I reformatted the external HD and everything was back to normal.
    A few days later the same thing happened and I reformatted it again. After happening for the third time, I just let TM back up these very large amounts of data as many times as it wanted until the disk got full (about 5 hours). Eventually the TM backups got so large, that they could not be stored on the external HD despite erasing the older back ups. This all happened a few weeks ago.
    Now I have already tried to directly connect the drive via USB to my MB to no avail. Additionally, I reformatted a Lacie 500GB to connect via USB thinking that the problem might be with the drive. Unfortunately it wasnt. Repeated diagnoistics with TechTool Pro confirmed this.
    Both the WD and Lacie I formatted in the same way, Journled with 2 partitions, 1 for the TM backup and another for media.
    Please, any help anybody can give me will be greatly appreciated.
    Also, Time Tracker doesn't seem to want to work on my machine...

    I downloaded the Time Machine Buddy widget and this is what is showed for the last few backups:
    Starting standard backup
    Backing up to: /Volumes/Ajay's Time Machine/Backups.backupdb
    No pre-backup thinning needed: 15.37 GB requested (including padding), 106.88 GB available
    Copied 9501 files (11.5 GB) from volume Macintosh HD.
    No pre-backup thinning needed: 694.4 MB requested (including padding), 95.37 GB available
    Copied 9 files (93 bytes) from volume Macintosh HD.
    Starting post-backup thinning
    Deleted backup /Volumes/Ajay's Time Machine/Backups.backupdb/Ajay's MacBook/2011-04-16-183942: 102.34 GB now available
    Deleted backup /Volumes/Ajay's Time Machine/Backups.backupdb/Ajay's MacBook/2011-04-16-173802: 102.34 GB now available
    Post-back up thinning complete: 2 expired backups removed
    Backup completed successfully.
    Then this an hour later:
    Starting standard backup
    Backing up to: /Volumes/Ajay's Time Machine/Backups.backupdb
    No pre-backup thinning needed: 694.4 MB requested (including padding), 102.34 GB available
    Copied 150 files (53 KB) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.
    Then this:
    Starting standard backup
    Backing up to: /Volumes/Ajay's Time Machine/Backups.backupdb
    No pre-backup thinning needed: 694.4 MB requested (including padding), 102.34 GB available
    Copied 150 files (53 KB) from volume Macintosh HD.
    No pre-backup thinning needed: 694.3 MB requested (including padding), 102.34 GB available
    Copied 9 files (93 bytes) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.

  • JTable with ScrollPane update problem

    hay i have a table and scrollpane is used as a container, at runtime i create new object of table and assign it to the scrollpane, but its still showing the old table,
    I also tried to
    updateUI();
    repaint();
    but it still showing the same old table,
    I also debug and saw that the new table has been created n successfuly displaying the values at command prompt.
    Can any one know whats wrong in it.

    Dont be ferious budy, now this is a working example....
    Problem is: I am changing the table object in jPanel2 but still jPanel2 is showing the same old table, I think there is a refresh kind of a problem
    Be kool dude n tell where is the problem.
    package tabletesting;
    import java.awt.BorderLayout;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ContainerEvent;
    import java.awt.event.ContainerAdapter;
    public class EmbededTable extends JFrame {
    public EmbededTable() {
    try {
    jbInit();
    } catch (Exception exception) {
    exception.printStackTrace();
    private void jbInit() throws Exception {
    flag=1; // flag to alter between objects
    getContentPane().setLayout(null);
    jPanel1.setBorder(BorderFactory.createEtchedBorder());
    jPanel1.setBounds(new Rectangle(28, 11, 320, 76));
    jPanel1.setBackground(Color.pink);
    jPanel1.setVisible(true);
    // jPanel1 contain the buttons when press toggel the table in panel
         this.setSize(new Dimension(640, 600));
    this.addContainerListener(new EmbededTable_this_containerAdapter(this));
    jPanel1.setLayout(null);
    jButton1.setBounds(new Rectangle(57, 2, 71, 29));
    jButton1.setText("jButton1");
    jButton1.addActionListener(new EmbededTable_jButton1_actionAdapter(this));
    jPanel2.setBorder(BorderFactory.createEtchedBorder());
    jPanel2.setBounds(new Rectangle(22, 133, 578, 304));
    jPanel2.addContainerListener(new EmbededTable_jPanel2_containerAdapter(this));
    jPanel2.setLayout(borderLayout1);
    testTable(); // to initially populate the jPanel2 with the tabel
    jButton2.setBounds(new Rectangle(191, 20, 93, 25));
    jButton2.setText("jButton2");
    jButton2.addActionListener(new EmbededTable_jButton2_actionAdapter(this));
    this.getContentPane().add(jPanel1);
    jPanel1.add(jButton1, null);
    jPanel1.add(jButton2);
    this.getContentPane().validate();
    this.setVisible(true);
    this.show();
    public void testTable()
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "Include Input",
    "Include Output"};
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Boolean(false), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Boolean(false), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Boolean(false), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Boolean(false), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Boolean(false), new Boolean(false)},
    if(flag==1)
    TableDemo newContentPane = new TableDemo(columnNames,data,4,5);
    newContentPane.setOpaque(true); //content panes must be opaque
    jPanel2.add(newContentPane, BorderLayout.CENTER);
    jPanel2.updateUI();
    jPanel2.repaint();
    jPanel2.revalidate();
    this.getContentPane().add(jPanel2);
    flag=0;
    else if(flag==0)
    Object[][] daa = {
    {"A", "T",
    "B", new Boolean(false), new Boolean(false)},
    {"C", "T",
    "Rowing", new Boolean(false), new Boolean(true)},
    {"D", "T",
    "Knitting", new Boolean(false), new Boolean(false)},
    {"E", "T",
    "Speed reading", new Boolean(false), new Boolean(true)},
    {"F", "T",
    "Pool", new Boolean(false), new Boolean(false)},
    TableDemo newContentPane = new TableDemo(columnNames,daa,4,5);
    newContentPane.setOpaque(true); //content panes must be opaque
    this.getContentPane().add(jPanel2);
    this.jPanel2.add(newContentPane,BorderLayout.CENTER);
    this.jPanel2.updateUI();
    jPanel2.repaint();
    jPanel2.revalidate();
    this.getContentPane().add(jPanel2);
    flag=1;
    public static void main(String[] args) {
    EmbededTable embededtable = new EmbededTable();
    JPanel jPanel1 = new JPanel();
    static int flag;
    JButton jButton1 = new JButton();
    JPanel jPanel2 = new JPanel();
    JPanel jPanel3 = new JPanel();
    BorderLayout borderLayout1 = new BorderLayout();
    JButton jButton2 = new JButton();
    public void CreateGUI()
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "Include Input",
    "Include Output"};
    Object[][] data = {
    {"A", "Campione",
    "B", new Boolean(false), new Boolean(false)},
    {"C", "Huml",
    "Rowing", new Boolean(false), new Boolean(true)},
    {"D", "Walrath",
    "Knitting", new Boolean(false), new Boolean(false)},
    {"E", "Zakhour",
    "Speed reading", new Boolean(false), new Boolean(true)},
    {"F", "Milne",
    "Pool", new Boolean(false), new Boolean(false)},
    //Create and set up the content pane.
    TableDemo newContentPane = new TableDemo(columnNames,data,4,5);
    newContentPane.setOpaque(true); //content panes must be opaque
    jPanel3.setBorder(BorderFactory.createEtchedBorder());
    jPanel3.setBounds(new Rectangle(22, 133, 578, 304));
    jPanel3.setLayout(borderLayout1);
    // this.getContentPane().remove(jPanel2);
    this.getContentPane().add(jPanel3);
    this.jPanel3.add(newContentPane,BorderLayout.CENTER);
    this.jPanel3.updateUI();
    this.validate();
    public void jButton1_actionPerformed(ActionEvent e) {
    CreateGUI();
    public void jButton2_actionPerformed(ActionEvent e) {
    testTable();
    public void this_componentAdded(ContainerEvent e) {
    public void jPanel2_componentRemoved(ContainerEvent e) {
    System.out.println(" component removed");
    public void jPanel2_componentAdded(ContainerEvent e) {
    System.out.println(" component added");
    class EmbededTable_jPanel2_containerAdapter extends ContainerAdapter {
    private EmbededTable adaptee;
    EmbededTable_jPanel2_containerAdapter(EmbededTable adaptee) {
    this.adaptee = adaptee;
    public void componentRemoved(ContainerEvent e) {
    adaptee.jPanel2_componentRemoved(e);
    public void componentAdded(ContainerEvent e) {
    adaptee.jPanel2_componentAdded(e);
    class EmbededTable_this_containerAdapter extends ContainerAdapter {
    private EmbededTable adaptee;
    EmbededTable_this_containerAdapter(EmbededTable adaptee) {
    this.adaptee = adaptee;
    public void componentAdded(ContainerEvent e) {
    adaptee.this_componentAdded(e);
    class EmbededTable_jButton2_actionAdapter implements ActionListener {
    private EmbededTable adaptee;
    EmbededTable_jButton2_actionAdapter(EmbededTable adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton2_actionPerformed(e);
    class EmbededTable_jButton1_actionAdapter implements ActionListener {
    private EmbededTable adaptee;
    EmbededTable_jButton1_actionAdapter(EmbededTable adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);
    TabelDemo class
    public class TableDemo extends JPanel {
    private boolean DEBUG = false;
    public TableDemo(String[] c, Object[][] d,int col,int row) {
    super(new GridLayout(1, 0));
    JTable table = new JTable(new MyTableModel(c,d,4,5));
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    table.setFillsViewportHeight(true);
    Object obj=table.getValueAt(0,1);
    table.updateUI();
    JScrollPane scrollPane = new JScrollPane();
    scrollPane.getViewport().setView(table);
         Object ob= table.getValueAt(0,0);
    System.out.println(" ob " + ob.toString());
    scrollPane.updateUI();
    scrollPane.getViewport().revalidate();
    scrollPane.getViewport().updateUI();
    add(scrollPane);
    this.updateUI();
    this.revalidate();
    super.repaint();
    super.validate();
    Tabel class
    public class MyTableModel extends AbstractTableModel {
    boolean DEBUG= false;
    public String[] columnNames ;
    public String[] str; // to verify only one output variable
    Boolean fal= new Boolean(false);
         public Object[][] data;
    MyTableModel()
    MyTableModel(String[] col, Object[][] dat, int lenRow, int lenCol)
    data=dat;
    columnNames=col;
    str= new String[col.length];
    funcopy(str,lenRow);
    void funcopy(String[] str, int lenRow)
    for(int i=0;i<lenRow;i++)
    str=fal.toString();
    for(int i=0;i<str.length;i++)
    System.out.println("values are " + str[i]);
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    public boolean isCellEditable(int row, int col) {
    //Note that the data/cell address is constant,
    //no matter where the cell appears onscreen.
    if (col < 2) {
    return false;
    } else {
    return true;
    public void setValueAt(Object value, int row, int col) {
    if (DEBUG) {
    System.out.println("Setting value at " + row + "," + col
    + " to " + value
    + " (an instance of "
    + value.getClass() + ")");
    System.out.println("row " + row + "col " + col + value.toString());
    Object obj= getValueAt(row,col);
    if(col==3) // column 3 is the output column.
    if(value.toString().equals("true"))
    int savepointer=row;
    int flag=-1;
    for(int i=0;i<str.length;i++)
    if(str[i].toString().equalsIgnoreCase("true"))
    flag=1;
    if(flag!=1)
    System.out.println("inside flag ==1");
    data[row][col]=value;
    str[row]=value.toString();
    fireTableCellUpdated(row, col);
    if(value.toString().equals("false"))
    data[row][col]=value;
    str[row]=value.toString();
    fireTableCellUpdated(row, col);
    }// id col ends...
    if (DEBUG) {
    System.out.println("New value of data:");
    printDebugData();
    private void printDebugData() {
    int numRows = getRowCount();
    int numCols = getColumnCount();
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + data[i][j]);
    System.out.println();
    System.out.println("--------------------------");

Maybe you are looking for

  • Issue while extracting data using Gen DS of Type Infoset Query

    Hi All, We have a Generic Data source created using the Infoset query. I get some data discrepency when i am extracting the data with the same DS. The data for the Field Amount in the R3 and the PSA  is different. When i try to check the same using t

  • No tooltips for long filenames in list view any longer?

    hello all, i'm trying to figure out why no tooltips are showing for long file / folder names in finder any longer? they appear in icon view, but i've always used list view and tooltips would normally appear when the cursor is moved over a long filena

  • How to make a fill-in form in pdf?

    I would like to make a pdf contract that clients can easily fill in and email back to me. Is this possible in Photoshop?

  • Listening to itunes match songs in airplane mode

    I am taking a flight overseas and won't have internet access on the plane or while travelling internationally. Is there a way to download my music collection that have been matched via iTunes Match to my iPhone 4 so that I can listen to my music with

  • Remore procedure call failed

    Hi, When i try to execute the following code <b>oForm = oApplication.Forms.AddEx(oCreationParams)</b> I am getting the error "Remore procedure call failed" what does it mean and how to solve this. Manoj