Identifying JTable component & populating

Hi all,
I have a JTable which is pre-populated using a TableFormat. What I need to do later in the code (once the table has been drawn) is identify what components are in the table and then do something with these components.
For example if my JTable contains a JCombo box called "combo" and a text field called "text" I would like to get the combo component and then populate it with some values
Any suggestions much appreciated,

Seems like creating your own table model is the solution you are looking for.
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Similar Messages

  • Identify used component

    Hi,
    I want to know which component (tab, button, ...) the user klicked on. How can I retrieve this information?
    Thanks
    Edited by: Alegria on Dec 19, 2007 9:58 AM

    You Could have a Hidden Field in your form and have the hidden field updated through Javascript with the ID/name of the tab or button which the User clicked and bind that hidden field to backing bean property. Use that property to identify which component was clicked.
    Thanks
    Saikrishna Rao.K

  • Why doesn't  list component identify grid component

    Hi,
    I have couple of doubts.
    1. I put <grid> component inside of <List>
    component . Surprise! The <List> component is not identifying
    the <Grid> component. Is this bug of Flex Or it's property of
    Flex <List> component.
    What I have to do to make <Grid> visible even I put
    inside of <List> component.
    2. what is an equilanat of <Table> in Flex. Ofcourse it
    may be DataGrid. Suppose If I use DataGrid I have lot of
    restrictions.
    These are the problems I am facing with <DataGrid>
    ( i ) Is this possible to put radio button / link bar as one
    of column in a row. I mean how to put radio button / link bar as
    row in array
    ( ii ) Is it possible to make columns in a row as variable
    sizes i.e. suppose if DataGrid header has size=100. Is it possible
    to make column of next row size as 200.
    anybody help me in this regard. I am eagarly waiting for
    reply.Because I have been strugling to solve this problem for last
    4 days.
    Regards,
    Siva Kumar

    A custom itemRenderer will be the solution to several of your
    issues(1,i).
    For 2., there is no exact equivalent of an html table. Look
    at Grid, TileList, or consider making your own component.
    for ii), no, all cells in a columns must be the same size.
    Tracy

  • Sorting the Rows in a JTable Component Based on a Column

    Hi Masters..would like to have your valuable help and suggestion..i am using jdk1.4.i have jtbale and would like to have one column data in sorted way...
    just i am enclosing my code in tha i am using Collections.sort(data, new ColumnSorter(colIndex, ascending)); but that compare of that comparator is not at woring that data is not getting soretd.
    here data is the jtable complete data.
    Main java file:
    package com.ibm.sort;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableModel;
    public class SimpleTableDemo extends JPanel {
    private boolean DEBUG = false;
         int colIndex;
              boolean ascending;
         DefaultTableModel model = new DefaultTableModel();
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"First Name","Last Name","Sport","# of Years","Vegetarian"};
    Object[][] data = {
    {"Mary", "Campione","Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath","Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour","Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10), new Boolean(false)}
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 80));
              table.setAutoCreateColumnsFromModel(false);
         JScrollPane scrollPane = new JScrollPane(table);
    add(scrollPane);
              sortAllRowsBy(model, 1, true);
         public void sortAllRowsBy(DefaultTableModel model, int colIndex, boolean ascending) {
                   Vector data = model.getDataVector();
                   System.out.println("SimpleTableDemo.sortAllRowsBy()11111");
                   Collections.sort(data, new ColumnSorter(colIndex, ascending));
              //Collections.sort(data);
                   //Arrays.sort(data, new ColumnSorter(colIndex, ascending));
                   System.out.println("SimpleTableDemo.sortAllRowsBy()2222");
                   model.fireTableStructureChanged();
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Create and set up the window.
    JFrame frame = new JFrame("SimpleTableDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SimpleTableDemo newContentPane = new SimpleTableDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    Second FIle which has sorting :
    * Created on Jun 21, 2008
    * To change the template for this generated file go to
    * Window>Preferences>Java>Code Generation>Code and Comments
    package com.ibm.sort;
    import java.util.Comparator;
    import java.util.Vector;
    // This comparator is used to sort vectors of data
    public class ColumnSorter implements Comparator {
         int colIndex;
         boolean ascending;
         ColumnSorter(int colIndex, boolean ascending) {
              System.out.println("ColumnSorter.ColumnSorter(---colIndex--:"+colIndex+" ,ascending: "+ascending);
              this.colIndex = colIndex;
              this.ascending = ascending;
              System.out.println("ColumnSorter.ColumnSorter()");
         public int compare(Object a, Object b) {
              System.out.println("compare-----:");
              Vector v1 = (Vector)a;
              Vector v2 = (Vector)b;
              Object o1 = v1.get(colIndex);
              Object o2 = v2.get(colIndex);
    System.out.println("ColumnSorter.compare(): -o1- :"+o1+" ,o2: "+o2);
              // Treat empty strains like nulls
              if (o1 instanceof String && ((String)o1).length() == 0) {
                   o1 = null;
              if (o2 instanceof String && ((String)o2).length() == 0) {
                   o2 = null;
              // Sort nulls so they appear last, regardless
              // of sort order
              if (o1 == null && o2 == null) {
                   return 0;
              } else if (o1 == null) {
                   return 1;
              } else if (o2 == null) {
                   return -1;
              } else if (o1 instanceof Comparable) {
                   if (ascending) {
                        System.out.println("ascending-->ColumnSorter.compare()-((Comparable)o1).compareTo(o2): "+(((Comparable)o1).compareTo(o2)));
                        return ((Comparable)o1).compareTo(o2);
                   } else {
                        System.out.println("Desending-->ColumnSorter.compare()-((Comparable)o1).compareTo(o2): "+(((Comparable)o1).compareTo(o2)));
                        return ((Comparable)o2).compareTo(o1);
              } else {
                   if (ascending) {
                        System.out.println("ColumnSorter.compare()---o1.toString().compareTo(o2.toString())---: "+(o1.toString().compareTo(o2.toString())));
                        return o1.toString().compareTo(o2.toString());
                   } else {
                        return o2.toString().compareTo(o1.toString());
    Please help is deadly needed.
    thanks in advance!!!

    Learn to use code tags.
    Learn to use google.
    http://www.google.com/search?q=java+sort+rows+jtable&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

  • How to identify the component in an action

    Hi, here is my scenario:
    I have multiple tree components in a page and all nodes of them are associated with an action. And I need to identify the id of the tree, from where the action is triggered. But it seems that I cannot pass any parameters into the action. Is there anything like event to let me dynamically identify the tree id where the node clicked belongs to? Using ActionListener?
    thanks,

    Please see
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/tree_component.html
    Note this sample does not work for portlet.

  • Problem identified jsf component and problem of checkboxs

    hello,
    i have 2 questions:
    - 1
    I have a js function that show/don't show a tab when we chose yes/no on a SelectOneRadio:
    function display(fieldRadio,tabtohide)
    div = document.getElementById(tabtohide);
    if(fieldradio.value=='false')
    div.className='hide';
    else div.className='';
    I call this function in the radio component, like this:
    onclick="display(this,'tabid');" and it works very well.
    The problem is that i would like to replace 'this' by the id of the component (to call this function at another place).
    I'v tried the document.getElementById(JsfTagId); but it doesn't work with jsf tag.
    - 2
    I use a selectmanycheckbox like this:
    <h:selectManyCheckbox value="#{BeanDemandeur.type}" required="false">
    <f:selectItem itemValue="Nouvelleinstallation" itemLabel="Nouvelle installation"/>
    <f:selectItem itemValue="Mise�jour" itemLabel="Mise � jour"/>
    <f:attribute name="fieldRef" value="Type de demande"/>
    </h:selectManyCheckbox>
    In the bean, i use the variable type like this:
    private String[] type = new String[2];
    public String[] getType(){return type;}
    public void setType(String[] rr){type[0]=rr[0];type[1]=rr[1];}
    And finally, in th faces-config.xml:
    <managed-property>
    <property-name>type</property-name>
    <property-class>java.lang.String[]</property-class>
    <value/>
    </managed-property>
    But an error occured: Can't set managed bean property:'type';
    thx u for your help

    r u getting any connversion error !
    what is the error ru getting when u run the code

  • How to identify the component is an assebly and Phantom component

    Hi ,
    I am working on BOM. If You see the transaction cs03 (go with any bom  ) inside we can see the componenets......
    These componenet having the check boxes for Assembly and Phantom componenet. If the check box is cheked we will consider as that component is Assembly Or Phantom....
    My question is how to identy this at table level..i don't see any field related to these check boxess in SRPO , STKO and MAST.
    Please do need full.
    Regards,
    Raja.K

    Hi Raja,
    If you can handle ABAP, please use FM 'CS_BOM_EXPL_MAT_V2' to explode your Bom
    Write something like this :
    *     Tables  "call CS_BOM_EXPL_MAT_V2 "
    DATA: BEGIN OF stb OCCURS 0.
            INCLUDE STRUCTURE stpox.
    DATA: END OF stb.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          auskz                 = ' '
          capid                 = 'PP01'
          datuv                 = sy-datum
          emeng                 = '1.000'
          stlan                 = '1'
          stlal                 = mast-stlal
          mtnrv                 = matnr
          mehrs                 = 'X'
          mmory                 = '1'
          stpst                 = '0'
          werks                 = werks
        IMPORTING
          topmat                = selpool
          dstst                 = dstst_flg
        TABLES
          stb                   = stb
          matcat                = matcat
        EXCEPTIONS
          material_not_found    = 4
          no_plant_data         = 8
          no_bom_found          = 12
          no_suitable_bom_found = 16.
      SORT stb BY idnrk.
    The field which will indicate you wether your component is either an Assembly or a Phantom is stb-dumps ( EQ space , for assembly ).
    Hope this helps,
    Erwan

  • How do you hide columns and rows in a JTable component?

    hi
    i have jTable
    basically it should contain 5 columns
    but initially i would like to show 2 and on some action performed i would like to add the other 3
    any suggestions

    Hi,
    See the TableColumnModel API for the answers you require.
    addColumn/removeColumn/moveColumn methods.
    Hope this helps for now.
    A Swing FAQ containing more comprehensive explainations of common questions - coming soon!
    Regards,
    Matt.
    Java Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • Newbie Trying to Identify a Component

    Hi I am newbie in electronics and mutisim and i have to create a laser circuit that uses a summing amplfier? (Basically i have it on a sheet in front of me and it is a square box with a plus inside, with input and output connections left and right obviously  and an arrow form above aiming down into it)
    I cant find this symbol anyway, can anyone help?

    Is there any way you could post a picture of what you have? There is a Voltage Summer component under SOURCES>CONTROL_FUNCTION_BLOCKS, but if it has an arrow anywhere on it that sounds to me like current and I don't see any summer/adder for current..
    I will post a picture of the Voltage Summer for you to look at.  It would help if we had a picture of it as it may be something different than what I am thinking it is.
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    Voltage Summer.JPG ‏12 KB

  • Identify Focused component which was in Jtabbed pane

    Hello Guys,
    In my java program, i have the following functionality:
    1. Have JTabbedpane, where am adding tabs & multiple Componentts(JTextpane & JTextfeild) to each tab dynamically.
    2. I have a JButton(Placed out side JTabbedpane), each time when i click button it should perform some validation only for JTextpane component & has to set the text to Jtextpane.
    ** As part of my business validation, the text in Jtextpane is going to change.
    Could some one reply me suggestion to implement this (or) is there any better way to achieve this functionality.
    Thanks..

    If you force a particular L&F you can do this. For example, if you force the basic L&F you can create a subclass of BasicTabbedPaneUI which uses a subclass of BasicTabbedPaneUI.TabbedPaneLayout which overrides calculateTabRects.

  • How to change width of columns in a JTable component?

    I created JTable1 by dragging from DataControls. I tried to change column width by changing of EntityObject - Width. But it doesn't work. I tried to do it In table binding editor - it doesn't work too.
    Help pls.

    Hello Megadown,
    This is how you can change the width:
    TableColumn column = jTable1.getColumnModel().getColumn(0);
    column.setPreferredWidth(100);
    Regards
    Johan

  • Identifier in BOMMAT03 to find if the component is add/delete/update?

    Hi all,
    Is there an Identifier in BOMMAT03 to find if the component is to be add/delete/update?
    Based on add/delete/update flg, i need to execute a MII transaction after the workflow is executed.
    Thanks,
    Shridhar

    Hello,
    I don't believe there is such identified for component. I think BOMMAT  just sends current BOM state and doesn't provide any info about previous object config.
    Regards,
    Konstantin Chernega

  • Focus cell editor component of JTable when starting editing by typing

    Hello, everybody.
    We all know that the JTable component doesn't actually focus the actual cell editor component when editing is started by typing. But I need this functionality in an application of mine. So, I ask: is there a way to transfer focus to the editor component when editing is started by typing?
    Thank you.
    Marcos

    Well, I think that I've found it: JTable#setSurrendersFocusOnKeystroke.
    Marcos

  • Unspecified Error while deleting a component

    Hi
      I have a component with a <form> tag; which refers to a servlet which is registered with a particular path.
    When i try to delete the component I am getting "Unspecified Error" - error. Once i run the page am not able to select the component to delete also.
    Any help will be appreciable
    Thanks
    Veena

    Hi Veena,
       Look at your log file to get complete stack trace to find the cause.
       As a workaround, In crxde go to the page under par identify your component. Then delete that node & save the changes. An example to delete productlist from geometrixx product page is [1].
    [1] /content/geometrixx/en/products/jcr:content/par/productlist
    Thanks,
    Sham

  • JTable checkboxes doesn't retain their selection when a new row is added!!

    HI,
    My gui has the JTable component which has 5 columns. out of which 4 columns are checkboxes. whenever i select an item from the Jlist and click on the add button it will add a new row in JTable.
    but the problem is whenever a new row is added to the table. the previously selected checkboxes of previous rows are being deselected. But i want to retain the selection of my previous rows even when a new row is added. please help me how to achieve this..i am posting my JTable code here:
    class FunctionTableModel extends AbstractTableModel{
           /** The instances who's attribute structure we are reporting */
        //protected InitModel m_init;
        protected String func_element;
        protected int counter;
        //protected String[] func_array;
        protected Vector func_vector;
        /** The flag for whether the instance will be included */
        protected boolean [] m_Sum;
        protected boolean [] m_Min;
        protected boolean [] m_Avg;
        protected boolean [] m_Max;
        protected boolean [] m_SD;
         * Creates the tablemodel with the given set of instances.
         * @param instances the initial set of Instances
        public FunctionTableModel() {
          counter =0;
             func_vector = new Vector();
         public FunctionTableModel(Vector vec) {
            func_vector = vec;
        public Vector getDataVector(){
            return func_vector;
         * Sets the tablemodel to look at a new set of instances.
         * @param instances the new set of Instances.
        public void setElement(Vector vec) {
               for(int i=0;i<vec.size();i++){
            func_vector.add(vec.elementAt(i));
            counter++;
          fireTableDataChanged();   
          m_Sum = new boolean [counter];
          m_Min = new boolean[counter];
          m_Avg = new boolean[counter];
          m_Max = new boolean[counter];
          m_SD = new boolean[counter];
         * Gets the number of attributes.
         * @return the number of attributes.
        public int getRowCount() {
               return func_vector.size();
         * Gets the number of columns: 3
         * @return 3
        public int getColumnCount() {
          return 6;
         * Gets a table cell
         * @param row the row index
         * @param column the column index
         * @return the value at row, column
        public Object getValueAt(int row, int column) {
          switch (column) {
          case 0:
            return func_vector.elementAt(row);
          case 1:
            return new Boolean(m_Sum[row]);
          case 2:
            return new Boolean(m_Min[row]);
          case 3:
            return new Boolean(m_Avg[row]);
          case 4:
            return new Boolean(m_Max[row]);
          case 5:
            return new Boolean(m_SD[row]); 
          default:
            return null;
        public void removeAll(){
            func_vector.removeAllElements();
            fireTableDataChanged();
         * Gets the name for a column.
         * @param column the column index.
         * @return the name of the column.
        public String getColumnName(int column) {
          switch (column) {
          case 0:
            return new String("Function Selected");
          case 1:
            return new String("Sum");
          case 2:
            return new String("Min");
          case 3:
            return new String("Avg");
          case 4:
            return new String("Max");
          case 5:
            return new String("SD");   
          default:
         return null;
         * Sets the value at a cell.
         * @param value the new value.
         * @param row the row index.
         * @param col the column index.
        public void setValueAt(Object value, int row, int col) {
          if(col == 0){
            counter++;
            func_vector.add(counter,value.toString());
          if (col == 1)
            m_Sum[row] = ((Boolean) value).booleanValue();
          if (col == 2)
            m_Min[row] = ((Boolean) value).booleanValue();
          if (col == 3)
            m_Avg[row] = ((Boolean) value).booleanValue();
          if (col == 4)
            m_Max[row] = ((Boolean) value).booleanValue();
          if (col == 5)
            m_SD[row] = ((Boolean) value).booleanValue();       
         * Gets the class of elements in a column.
         * @param col the column index.
         * @return the class of elements in the column.
        public Class getColumnClass(int col) {
             return getValueAt(0, col).getClass();
         * Returns true if the column is the "selected" column.
         * @param row ignored
         * @param col the column index.
         * @return true if col == 1.
        public boolean isCellEditable(int row, int col) {
          if (col >= 1) {
             return true;
          return false;
        public void removeRow(int row){
            if(row<=func_vector.size()){
                          func_vector.removeElementAt(row);
                counter--;
            fireTableDataChanged();
        }

    hi parvathi,
    i have made changes to my previous code and here's the code:
      class FunctionTableModel extends DefaultTableModel{
           /** The instances who's attribute structure we are reporting */
        //protected InitModel m_init;
        protected String func_element;
        protected int counter;
        protected int counter1;
        //protected String[] func_array;
        protected Vector func_vector;
        /** The flag for whether the instance will be included */
        protected boolean [] m_Sum;
        protected boolean [] m_Min;
        protected boolean [] m_Avg;
        protected boolean [] m_Max;
        protected boolean [] m_SD;
        //protected Vector m_Sum1;
        //protected Vector m_Min1;
        //protected Vector m_Avg1;
        //protected Vector m_Max1;
        //protected Vector m_SD1;
         * Creates the tablemodel with the given set of instances.
         * @param instances the initial set of Instances
        public FunctionTableModel() {
            System.out.println("entered the constr");
          counter =0;
          //counter1=0;
          //m_Sum1 = new Vector();
          //m_Min1 = new Vector();
          //m_Avg1 = new Vector();
          //m_Max1 = new Vector();
          //m_SD1 = new Vector();
          //func_array = new String[];
          func_vector = new Vector();
         public FunctionTableModel(Vector vec) {
            func_vector = vec;
            //setElement(func_vector);
        public Vector getDataVector(){
            return func_vector;
         * Sets the tablemodel to look at a new set of instances.
         * @param instances the new set of Instances.
        public void addRow(Vector vec) {
          //counter++; 
          //func_element = ele;
          //System.out.println("FunctionTableModel- setElement() method");
          for(int i=0;i<vec.size();i++){
            func_vector.add(vec.elementAt(i));
            counter++;  
           //System.out.println("counter ="+counter+new boolean[counter]); 
            //m_Sum1 = m_Sum;
            //m_Min1 = m_Min;
            //m_Avg1 = m_Avg;
            //m_Max1 = m_Max;
            //m_SD1 = m_SD;
            //m_Sum = new boolean[counter];
            //System.out.println("at setElement");
            m_Sum = new boolean[counter];
            //System.out.println(counter);
            m_Min = new boolean[counter];
            //m_Min;
            m_Avg = new boolean[counter];
            //m_Avg1 = m_Avg;
            m_Max = new boolean[counter];
            //m_Max1 = m_Max;
            m_SD = new boolean[counter];
            //m_SD1 = m_SD;
            //counter1++;
          //func_array[counter]=ele;
          //func_vector.add(counter,ele);
          fireTableDataChanged();  
         * Gets the number of attributes.
         * @return the number of attributes.
        //public int getRowCount() {
          //System.out.println("FunctionTableModel- getRowCount() method");
          //return func_vector.size();
         * Gets the number of columns: 3
         * @return 3
        public int getColumnCount() {
          return 6;
         * Gets a table cell
         * @param row the row index
         * @param column the column index
         * @return the value at row, column
        public Object getValueAt(int row, int column) {
          switch (column) {
          case 0:
            return func_vector.elementAt(row);
          case 1:{
            //System.out.println("in case 1");
            //Boolean m_Sum_Value = new Boolean(m_Sum[row]);
            //System.out.println("m_Sum_Value:"+m_Sum_Value.booleanValue());
            return new Boolean(m_Sum[row]);
            //m_Sum1.add(m_Sum_Value);
            //return m_Sum_Value;
          case 2:
            return new Boolean(m_Min[row]);
          case 3:
            return new Boolean(m_Avg[row]);
          case 4:
            return new Boolean(m_Max[row]);
          case 5:
            return new Boolean(m_SD[row]); 
          default:
            return null;
        public void removeAll(){
            func_vector.removeAllElements();
            //m_Sum1.removeAllElements();
            fireTableDataChanged();
         * Gets the name for a column.
         * @param column the column index.
         * @return the name of the column.
        public String getColumnName(int column) {
          switch (column) {
          case 0:
            return new String("Function Selected");
          case 1:
            return new String("Sum");
          case 2:
            return new String("Min");
          case 3:
            return new String("Avg");
          case 4:
            return new String("Max");
          case 5:
            return new String("SD");   
          default:
         return null;
         * Sets the value at a cell.
         * @param value the new value.
         * @param row the row index.
         * @param col the column index.
        public void setValueAt(Object value, int row, int col) {
          if(col == 0){
            counter++;
            func_vector.add(counter,value.toString());
          if (col == 1) {
            m_Sum[row] = ((Boolean) value).booleanValue();
            //System.out.println("m_Sum length "+m_Sum.length);
            //for(int i=0;i<=row;i++)
            //    System.out.println("m_Sum1 "+i+((Boolean)m_Sum1.elementAt(i)).booleanValue());
            //System.out.println("m_Sum1["+row+"] "+ ((Boolean)m_Sum1.elementAt(row)).booleanValue());
            //    System.out.println("m_Sum["+i+"] "+ m_Sum);
    if (col == 2)
    m_Min[row] = ((Boolean) value).booleanValue();
    if (col == 3)
    m_Avg[row] = ((Boolean) value).booleanValue();
    if (col == 4)
    m_Max[row] = ((Boolean) value).booleanValue();
    if (col == 5)
    m_SD[row] = ((Boolean) value).booleanValue();
    * Gets the class of elements in a column.
    * @param col the column index.
    * @return the class of elements in the column.
    public Class getColumnClass(int col) {
    return getValueAt(0, col).getClass();
    * Returns true if the column is the "selected" column.
    * @param row ignored
    * @param col the column index.
    * @return true if col == 1.
    public boolean isCellEditable(int row, int col) {
    if (col >= 1) {
         return true;
    return false;
    public void removeRow(int row){
    if(row<=func_vector.size()){
    func_vector.removeElementAt(row);
    counter--;
    fireTableDataChanged();
    previouslu i was using the setElement method. now i have replaced with the addRow method...
    but anyways...the control is not going to any of these overridden methods...and none of the elements are added to the table. But i comment of all the addRow, getValueAt, getColumnClass methods...then it's adding rows to the table but with only the first column all the remaiing columns are just empty...
    i am fed up with this...if you observe i have commented out somany lines...becoz i am trying to save my boolean array values into a vector..but that was also in vain...
    i appreciate for ur help...
    thanks
    sri

Maybe you are looking for

  • Is there a way to get The Sims 3 to work normally?

    I downloaded The Sims 3 from my pc on to my iMac last July and it worked normally until I downloaded The Sims 3 Seasons, now it crashes and freezes. I emailed EA and they told me to uninstall all of the expansion packs and the base game, which didn't

  • Same dimensions in one application

    Hi experts; My question is about the same dimensions in one application. I have customer dimension and customer_z dimension.There is no problem when enter bpc for excel. If i want to open dynamic table screen or  evdre function in blank sheet , the s

  • Error while using idoc adaptor

    Hi, Can anyone explain me what does this error mean.Im doing a file to IDOC scenario <SAP:Stack>Error: MSGGUID 2B8185203F5911DCBF410002556AD065: Tag found instead of tag IDOC BEGIN=</SAP:Stack> Thanks in advance, Bhargav

  • Exception starting server when using wlserver Ant task

    Hello All: When attempting to start my server using the wlserver Ant task, i receive the following error: [wlserver] java.lang.NoClassDefFoundError: weblogic/Server [wlserver] Exception in thread "main" [wlserver] Error in server execution my snippet

  • Why can't I add/change NEF metadata in Bridge after CS3 re-install?

    After a recent unplanned changeover to Windows 7, during which I had to re-install CS3, I now find that I can't add metadata keywords to NEF images taken and archived before the re-install, nor can I add keywords to image metadata that was originally