Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 13 of 13

Thread: Flickering Checkbox in jtable ?

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Flickering Checkbox in jtable ?

    I generate a JTable dynamically with sql data. First iteratioin checkbox gets selcted and corresponding row values are fetched. In next iterations checkbox selected flicker and the correspaonding values are not selected. Can u help resolve this problem ??

     
    public class Clientthread extends JFrame implements Runnable 
    { 
        private static final long serialVersionUID = 1L;
        JTable table;             // Creating a table
        DefaultTableModel model;  // Defining a model for the table
        JButton Acknowledge;      // Creating an instance of Button "Acknowledge"
        JPanel Panel;             // Creating a panel to hold below 2 panes 
        JScrollPane Pane;         // Creating a pane to hold the table
        JScrollPane Pane1;        // Creating a pane1 to hold the Button "Acknowledge"
        JScrollPane Pane2;
        String[] Optlist = {"Show Alarm", "Show History", "Report Alarm (PDF)", "Report History (PDF)"};
        JComboBox Options=null;  
     
        String p=null;
        String w=null;
        Clientack ru=null;        // Creating an instance of class "Clientack"
        File soundFile = null;    // Creating an instance to play "Sound File"
        TableColumn tc=null;
        String area=null;
     
    //  Boolean last=null;
     
        JFrame Frame1=new JFrame();
        JFrame Frame2=new JFrame();
     
        int PORT = 8134;
        Socket sock=null;
        InputStream inStream = null;
        DataInputStream inDataStream;  
        OutputStream outStream ;
        DataOutputStream outDataStream ;
     
        int i,r;   
        String ip,selection,stso,group,message,p1,p2,Sensor;
        static String checkedval;
        static String Name;
        Double Value;
        Object data[][]=null;
        static Object abc=null;
        static Object Checkedvalues;
     
        public Clientthread(String area1,String ipp,String name)
        {
           this.area=area1;
            ip=ipp;
            Name=name; 
        }
     
            public Clientthread(Object abc) 
                {
                Checkedvalues=abc;
                checkedval=(String)Checkedvalues;
                System.out.println("const : "+checkedval);
                }
     
                @Override
                public void run() 
                {
                     try
                     {           
                                 sock=new Socket(ip,PORT);
                                 System.out.println("Socket Established at 8134..");
                                 try
                                 {             
                                     setTitle( group );
                                     setSize(520,570);
                                     setDefaultCloseOperation(DISPOSE_ON_CLOSE);
     
                                     Panel=new JPanel();
                                     Panel.setLayout(null);
                                     getContentPane().add(Panel);                              
     
                                    model = new DefaultTableModel();
     
                                            System.out.println("Connection Established..... ");
                                            soundFile = new File("C:/Users/icHaNge/Downloads/cen.wav");                                                                             
                                            try
                                            {
                                            outStream = sock.getOutputStream();
                                            outDataStream = new DataOutputStream (outStream);       
                                            outDataStream.writeUTF(area);
                                            }
     
                                            catch(Exception e)
                                            {
                                                System.out.println("Cannot Send Server Group Values");
                                            }
                                            while (true)
                                            {                             
                                                inStream = sock.getInputStream ();
                                                inDataStream = new DataInputStream ( inStream );
                                                message = inDataStream.readUTF();
                                                System.out.println("Server Sent Moxa values : "+message);
                                                Object col[] = {"Sensor","Values","Arrival_Time","Status",""};
                                                if(!message.equals("ITS EMPTY"))
                                                {
                                                    String[] parts = message.split("\t");
                                                    data = new Object[parts.length / 4][5];
                                                    for (i = 0, r = 0; r < data.length; r++) 
                                                    {
                                                    data[r][0] =  parts[i++];
                                                   //data[r][1] =  new Double(parts[i++]) ;
                                                    data[r][1] =  parts[i++] ;
                                                    data[r][2] = parts[i++];
                                                    data[r][3] = parts[i++];
                                                    p=(String) data[r][3];
                                                    w = (String) abc(p);
                                                    data[r][4]=Boolean.parseBoolean(w) ;
                                                  // System.out.println(data[r][4]);
                                                    }               
                                                    //System.out.println(java.util.Arrays.deepToString(data));
     
                                                 //Display Table     
                                                model.setDataVector(data, col);
                                                model.fireTableDataChanged();
     
     
                                                    table = new JTable(model)
                                                    {
                                                        private static final long serialVersionUID = 1L;
                                                        @Override
                                                        public Class getColumnClass(int column) {
                                                            switch (column) {
                                                                case 0:
                                                                    return String.class;
                                                                case 1:
                                                                    return String.class;
                                                                case 2:
                                                                    return String.class;
                                                                case 3:
                                                                    return String.class;
                                                                default:
                                                                        return Boolean.class;
                                                            }
                                                        }
                                                    };    
     
                            ///  TableColumn tc=table.getColumnModel().getColumn(3);
                             // table.removeColumn(tc);
                              //table.repaint();                  
     
                       table.setPreferredScrollableViewportSize(table.getPreferredSize()); 
                       table.repaint();
                       table.getColumnModel().getColumn(4).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),Name));
     
                       table.
                          // Rendering for checkbox "select All"
                         tc = table.getColumnModel().getColumn(4);
                          tc.setHeaderRenderer(new CustomTableCellRenderer1(new MyItemListener(),Name));
     
                          table.getCellSelectionEnabled();
                          table.setIgnoreRepaint(true);
                          table.getColumnModel().getColumn(4).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),Name));
     
                         table.setDefaultRenderer(Object.class, new CustomTableCellRenderer3());
     
                            Acknowledge.setBackground(Color.green);                                 
                            Acknowledge.setBounds(0,560,580,25); 
     
                            Options.setBackground(Color.cyan);
     
                            Pane=new JScrollPane(table);
                            Pane.setSize(500,500);
     
                            Pane1=new JScrollPane(Acknowledge);
                            Pane1.setSize(90,30);
                            Pane1.setBounds(0,500,320,30);
     
                            Pane2=new JScrollPane(Options);
                            Pane2.setBounds(320,500,180,30);
     
     
                            Panel.add(Pane);       
                            Panel.add(Pane1);
                            Panel.add(Pane2);
     
                            Acknowledge.setVisible(true);
                            Acknowledge.setEnabled(true);
     
                            setVisible(true);
                            ru = new Clientack(table);
                          //   new Thread(ru).start();
                    }
                    else
                    {
                        System.out.println("NO TABLE");    
                    }                                                                
                }
            }                
            catch(Exception e)
               { 
                 System.out.println("Exception Occured:" +e); 
                    }   
                  }                
                 catch(UnknownHostException ex)
                   { 
                     Logger.getLogger(Clientthread.class.getName()).log(Level.SEVERE, null, ex); 
                     }
                  catch (IOException ex) 
                  {
                    Logger.getLogger(Clientthread.class.getName()).log(Level.SEVERE, null, ex);
                    }   
                 }
     
     
                  private Object abc(String p)
                     {      
                       String val=null;
                        if(p.equals("ACK"))
                             {
                               val="true";
                              }
                         else if(p.equals("nil"))
                               {
                                 val="false";
                                }
                      return val;
                       }
     
     
                class MyItemListener implements ItemListener
                  {
                    public void itemStateChanged(ItemEvent e) {
                      Object source = e.getSource();
                      if (source instanceof AbstractButton == false) return;
                      boolean checked=e.getStateChange() == ItemEvent.SELECTED;
                      System.out.println(checked);
                      for(int x = 0, y = table.getRowCount(); x < y; x++)
                      {
                        table.setValueAt(new Boolean(checked),x,4);
                      }
                      if(checked==true)
                      {
                          int row=table.getRowCount();
                          if(row!=0)
                            {
                             for(int i=0;i<=row-1;i++)
                             {
                               String Sensor =(String) table.getValueAt(i, 0);
                               String Value =(String) table.getValueAt(i, 1);
                               String Date =(String) table.getValueAt(i, 2);
                               abc += Sensor+"\t"+Value+"\t"+Name+"\t"+Date+"\t";
                            Clientthread ct=new Clientthread(abc);
                             }
                           }
                        }
                      else
                         {
                              abc=null;
                              Clientthread ct=new Clientthread(abc);
                         }
                      }
                  }


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Flickering Checkbox in jtable ?

    Can you provide code that can be compiled and executed for testing that shows the problem?

    The posted code is missing the import statements and does not have a main() method.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Flickering Checkbox in jtable ?

    Quote Originally Posted by Norm View Post
    Can you provide code that can be compiled and executed for testing that shows the problem?

    The posted code is missing the import statements and does not have a main() method.
    this is a client-server socket program in java.. and includes database as well.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Flickering Checkbox in jtable ?

    Can you make a small, complete program that compiles, executes and shows the problem for testing?

    The code should only have the parts that are the problem: the GUI. No database or sockets.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Flickering Checkbox in jtable ?

    Thread moved from 'Whats wrong with my code'

    Without an SSCCE that norm asks for, we can only guess based upon the provided code. My guess: you are calling swing components from a thread other than the EDT. Suggested reading:
    Lesson: Concurrency in Swing (The Java™ Tutorials > Creating a GUI With JFC/Swing)

  6. #6
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Flickering Checkbox in jtable ?

    Quote Originally Posted by Norm View Post
    Can you make a small, complete program that compiles, executes and shows the problem for testing?

    The code should only have the parts that are the problem: the GUI. No database or sockets.
    okey norm..il do that. give me some time to modify the codes.

  7. #7
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Flickering Checkbox in jtable ?

    Quote Originally Posted by harshilshah View Post
    okey norm..il do that. give me some time to modify the codes.
    1.jpg2.jpg3.jpg4.jpg5.jpg

  8. #8
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Flickering Checkbox in jtable ?

    Application images are added above for better understanding .. . .

    Input for 1st iteration :s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil

    Input for 2nd iteration :s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil

    ///not space is "TAB"

    ....................................filter class
    import java.awt.Color;
    import java.awt.image.BufferStrategy;
    import java.util.Scanner;
     
    import javax.swing.JButton;
    import javax.swing.JCheckBox;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
     
     
    public class flicker extends JFrame implements Runnable {
     
    	JTable table;             // Creating a table
    	DefaultTableModel model = new DefaultTableModel();  // Defining a model for the table
        JButton Acknowledge;      // Creating an instance of Button "Acknowledge"
        JPanel Panel;             // Creating a panel to hold below 2 panes 
        JScrollPane Pane;         // Creating a pane to hold the table
        JScrollPane Pane1;        // Creating a pane1 to hold the Button "Acknowledge"
        JScrollPane Pane2;
        String[] Optlist = {"Show Alarm", "Show History", "Report Alarm (PDF)", "Report History (PDF)"};
        JComboBox Options=null;  
     
        BufferStrategy myStrategy;
     
        String p=null;
        String w=null;
        // Creating an instance of class "Clientack"
        // Creating an instance to play "Sound File"
    	String area=null;
     
        int i,r;   
        String ip,selection,stso,group,message,p1,p2,Sensor;
        static String checkedval;
        static String Name;
        Double Value;
        Object data[][]=null;
        static Object abc=null;
        static Object Checkedvalues;
     
        public static void main(String [] args)
    	{
        	  flicker myRunnable = new flicker();
              Thread t = new Thread(myRunnable);
              t.start();
     }
     
     
    			@Override
                public void run() 
                {
                	 try
                     {                     
                                	 setTitle( group );
                                	 setSize(520,570);
                                	 setDefaultCloseOperation(DISPOSE_ON_CLOSE);         	               
     
                                	 Panel=new JPanel();
                                	 Panel.setLayout(null);
                                       getContentPane().add(Panel);
     
                                         model = new DefaultTableModel();    
     
                                         Scanner sc = new Scanner(System.in);
                               	  			while (true)
                               	  			{                             
                               	  				System.out.println("Write message here: ");
                               	  				message=sc.nextLine();
                               	  				System.out.println("Message is: "+message);
                               	  				Object col[] = {"Sensor","Values","Arrival_Time","Status",""};
                               	  				if(!message.equals("ITS EMPTY"))
                               	  				{
                               	  					String[] parts = message.split("\t");
                       	  				         data = new Object[parts.length / 4][5];
     
                               	  					for (i = 0, r = 0; r < data.length; r++) 
                               	  					{                        	  						
                           	  						data[r][0] =  parts[i++];
                           	  					   //data[r][1] =  new Double(parts[i++]) ;
                           	  					    data[r][1] =  parts[i++] ;
                           	  					    data[r][2] = parts[i++];
                           	  					    data[r][3] = parts[i++];
                           	  					    p=(String) data[r][3];
                           	  					    w = (String) abc(p);
                           	  					    data[r][4]=Boolean.parseBoolean(w) ;
                           	  					  // System.out.println(data[r][4]);
                               	  					}               
                               	  					//System.out.println(java.util.Arrays.deepToString(data));
     
                                                 //Display Table     
                               	  				model.setDataVector(data, col);
     
                               	  				 table = new JTable(model)
                                          	        {
                                          	            private static final long serialVersionUID = 1L;
                                          	            @Override
                                          	            public Class getColumnClass(int column) {
                                          	                switch (column) {
                                          	                    case 0:
                                          	                        return String.class;
                                          	                    case 1:
                                          	                        return String.class;
                                          	                    case 2:
                                        	                        return String.class;
                                          	                    case 3:
                                      	                            return String.class;
                                          	                    default:
                                          	                        	return Boolean.class;
                                          	                }
                                          	            }
                                          	        };    
     
     
                   table.setDefaultRenderer(Object.class, new CustomTableCellRenderer3());
     
                      table.setPreferredScrollableViewportSize(table.getPreferredSize()); 
                     table.getColumnModel().getColumn(4).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),Name));
     
     
    		                Pane=new JScrollPane(table);
                            Pane.setSize(500,500);
     
                            Pane1=new JScrollPane(Acknowledge);
                            Pane1.setSize(90,30);
                            Pane1.setBounds(0,500,320,30);
     
                            Pane2=new JScrollPane(Options);
                            Pane2.setBounds(320,500,180,30);
     
     
    		                Panel.add(Pane);       
                            Panel.add(Pane1);
                            Panel.add(Pane2);                        
     
                            setVisible(true);
    				}
    				else
    				{
    					System.out.println("NO TABLE");    
    				}                    	                                         
    			}
            }                
            catch(Exception e)
               { 
                 System.out.println("Exception Occured:" +e); 
                    }   
                  }                
     
    			  private Object abc(String p)
    			     {		
    				   String val=null;
    	  				if(p.equals("ACK"))
    	  					 {
                               val="true";
    	  					  }
    	  				 else if(p.equals("nil"))
    	  					   {
    	  					     val="false";
    	  					    }
    				  return val;
    			       }			
     
    }
     
     
    ....................................customtablecellrenderer class
     
     
     
    import java.awt.Component;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
     
    import javax.swing.AbstractButton;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JLabel;
    import javax.swing.JTable;
     
    public class CustomTableCellRenderer extends DefaultCellEditor implements ItemListener {
     
    private static final long serialVersionUID = 1L;
    private JCheckBox checkBox;
    private JTable table1;
    private int row;
    Object abc="null";
    private String Name;
     
    public CustomTableCellRenderer(JCheckBox checkBox,String name2) {
        super(checkBox);
        this.checkBox = checkBox;
        this.checkBox.addItemListener(this);
        this.Name=name2;
    }
     
     
     
    public Component getTableCellEditorComponent(JTable table, Object value,
            boolean isSelected,int row, int column) 
    {
        this.row = row;
        this.table1=table;
        checkBox.setSelected((Boolean)value);
        return super.getTableCellEditorComponent(table,value,isSelected,row, column);
    }
     
    public void itemStateChanged(ItemEvent e) 
       {
        this.fireEditingStopped();
        //System.out.println("Item Changed " + row + " value is: " + checkBox.isSelected());
         //System.out.println("Item Changed " + column + " value is: " + checkBox.isSelected());
          String Sensor =(String) table1.getValueAt(row, 0);
          String Value =(String) table1.getValueAt(row, 1);
    	  String Date =(String) table1.getValueAt(row, 2);
    	  //String Status=(String) table1.getValueAt(row, 3);
    	  Boolean select=(Boolean) table1.getValueAt(row,4);
          if (Boolean.TRUE.equals(select)) 
           {
    	    abc += Sensor+"\t"+Value+"\t"+Name+"\t"+Date+"\t";
    	    System.out.println(abc);
        }
        else
        {
        }
        }
     
       }
     
     
    ....................................customtablecellrenderer3 class
     
     
     
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
     
     
    public class CustomTableCellRenderer3 extends DefaultTableCellRenderer{
     
    	  public Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) 
    	  {
     
        Component c = super.getTableCellRendererComponent(table, value, isSelected, isSelected, row, column);
        Boolean last=(Boolean)table.getValueAt(row, 4);  
      String status=(String)table.getValueAt(row, 3);  
        if(Boolean.TRUE.equals(last) && status.equals("ACK"))
    	    {
             c.setBackground(Color.green);
     
            }
        else if(Boolean.TRUE.equals(last) && status.equals("nil"))
    	    {
          c.setBackground(Color.yellow);
     
         }
        else
           {
       c.setBackground(Color.red);
     
           }
        table.repaint();
    return c;
      }
    }

  9. #9
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Flickering Checkbox in jtable ?

    I feed the program its input using this
           Scanner sc = new Scanner("s1	4.55	2013-04-24 17:26:48.0	ACK	s1	4.55	2013-04-24 21:36:07.0	nil\n"
                                 + "s1	4.55	2013-04-24 17:26:48.0	ACK	s1	4.55	2013-04-24 21:36:07.0	nil	s1	4.55	2013-04-24 17:26:48.0	ACK	s1	4.55	2013-04-24 21:36:07.0	nil"); //System.in);
    There is a table drawn with 4 rows: red/green/red/green and these messages were printed:
    Running: java -cp . Flicker

    Write message here:
    Message is: s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil
    Write message here:
    Message is: s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil
    Write message here:
    Exception Occured:java.util.NoSuchElementException: No line found

    What is supposed to be wrong???
    If you don't understand my answer, don't ignore it, ask a question.

  10. #10
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Flickering Checkbox in jtable ?

    Quote Originally Posted by Norm View Post
    I feed the program its input using this
           Scanner sc = new Scanner("s1	4.55	2013-04-24 17:26:48.0	ACK	s1	4.55	2013-04-24 21:36:07.0	nil\n"
                                 + "s1	4.55	2013-04-24 17:26:48.0	ACK	s1	4.55	2013-04-24 21:36:07.0	nil	s1	4.55	2013-04-24 17:26:48.0	ACK	s1	4.55	2013-04-24 21:36:07.0	nil"); //System.in);
    There is a table drawn with 4 rows: red/green/red/green and these messages were printed:
    Running: java -cp . Flicker

    Write message here:
    Message is: s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil
    Write message here:
    Message is: s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil s1 4.55 2013-04-24 17:26:48.0 ACK s1 4.55 2013-04-24 21:36:07.0 nil
    Write message here:
    Exception Occured:java.util.NoSuchElementException: No line found

    What is supposed to be wrong???


    click on the checkboxes on 1st iteration,ul see the data selected in console. Then add new values and click on checkboxes. u'l see it flickering & no data selected in console...u can see the images I posted.

  11. #11
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Flickering Checkbox in jtable ?

    Try debugging the code by adding some println statements that show where the execution flow is going and to show how and when the repaint() method is being called.
    If you don't understand my answer, don't ignore it, ask a question.

  12. #12
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Flickering Checkbox in jtable ?

    Evidently you completely ignored my post above, and to top it off got the same advice elsewhere. Not appreciated

    This thread has been cross posted here:

    http://www.java-forums.org/advanced-java/71941-flickering-problem-checkbox.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting


  13. The Following User Says Thank You to copeg For This Useful Post:

    jps (April 25th, 2013)

  14. #13
    Junior Member
    Join Date
    Feb 2013
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Flickering Checkbox in jtable ?

    Quote Originally Posted by copeg View Post
    Evidently you completely ignored my post above, and to top it off got the same advice elsewhere. Not appreciated

    This thread has been cross posted here:

    http://www.java-forums.org/advanced-java/71941-flickering-problem-checkbox.html

    Although cross posting is allowed, for everyone's benefit, please read:

    Java Programming Forums Cross Posting Rules

    The Problems With Cross Posting

    I studied about concurrency. I was guided to use swing worker threads and modified my code.. Still no results I have posted it here:
    http://www.javaprogrammingforums.com...er-thread.html

    what is wrong with it now ??

Similar Threads

  1. coloring the checked row in jtable using checkbox
    By harshilshah in forum AWT / Java Swing
    Replies: 1
    Last Post: April 18th, 2013, 12:53 PM
  2. Checkbox doesnt change when click on JTable
    By GodspeedPR in forum What's Wrong With My Code?
    Replies: 3
    Last Post: June 28th, 2011, 02:12 PM
  3. JPanel flickering
    By Ghosth in forum AWT / Java Swing
    Replies: 1
    Last Post: April 30th, 2011, 10:52 AM
  4. [SOLVED] Help with the CheckBox button in JTable
    By Yamato in forum What's Wrong With My Code?
    Replies: 4
    Last Post: December 6th, 2010, 10:22 PM
  5. how to delete record based on checkbox selected checkbox
    By -_- in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: December 15th, 2009, 09:26 PM

Tags for this Thread