mone.java
09-09-2011, 11:13
Salve, Sto tentando di creare un componente personalizzato da aggiungere alla palette di netbeans... ma sto diventando cretino... quando provo ad aggiungerlo mi dice: "The component cannot be instantiated. Please make sure it is a JavaBeans component." Ma il componente è un JavaBean!!
public class JSearchField extends JTextField {
private TableRowSorter<TableModel> sorter;
private JTable table;
private int colIndex;
private TableStringConverter tableStringConv;
public JSearchField() {
this(null);
}
public JSearchField(JTable table) {
super();
addKeyListener(new KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
filedKeyReleased(evt);
}
});
}
private void filedKeyReleased(KeyEvent evt) {
}
/** Getter & Setter**/
public int getColIndex() {
}
public void setColIndex(int colIndex) {
}
public TableRowSorter<TableModel> getSorter() {
}
public void setSorter(TableRowSorter<TableModel> sorter) {
}
public JTable getTable() {
}
public void setTable(JTable table) {
}
public TableStringConverter getTableStringConv() {
}
public void setTableStringConv(TableStringConverter tableStringConv) {
}
}
Quello sopra è lo scheletro della classe.... cosa c'è che non va???
Grazie a tutti!
public class JSearchField extends JTextField {
private TableRowSorter<TableModel> sorter;
private JTable table;
private int colIndex;
private TableStringConverter tableStringConv;
public JSearchField() {
this(null);
}
public JSearchField(JTable table) {
super();
addKeyListener(new KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
filedKeyReleased(evt);
}
});
}
private void filedKeyReleased(KeyEvent evt) {
}
/** Getter & Setter**/
public int getColIndex() {
}
public void setColIndex(int colIndex) {
}
public TableRowSorter<TableModel> getSorter() {
}
public void setSorter(TableRowSorter<TableModel> sorter) {
}
public JTable getTable() {
}
public void setTable(JTable table) {
}
public TableStringConverter getTableStringConv() {
}
public void setTableStringConv(TableStringConverter tableStringConv) {
}
}
Quello sopra è lo scheletro della classe.... cosa c'è che non va???
Grazie a tutti!