table.addRow

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    #1

    table.addRow

    Code:
    public void addRow(String nazwkaKwiata,int ilosc,double cena) {
    		int size = theRows.size();
    		for(int i=0;i<ilosc;i++){
    		theRows.add(new Row(nazwkaKwiata, 1 ,cena));
    		theTableModel.fireTableRowsInserted(size, size);
    		}
    	}
    
    
    
    
    
    
    table.addRow((String)kwiatyList.getSelectedItem(),a,c.getCenna((String)kwiatyList.getSelectedItem()));
    why eclipse says that addRow in the type Table is not applicable for the arguments String int doublei want to add arow to a table where columns are String int double values
    thank u
  • oll3i
    Contributor
    • Mar 2007
    • 679

    #2
    i solved it thank u

    Comment

    Working...