- how to set value of textfield into passed value of constructor
- class hello{
- String a;
- public hello(){
- this(0);
- initcomponents();//contains gui
- jTextField1.setText(a);//i want to get the value obtained from the constructor with param
- }
- public hello(int id){
- this a=Integer.toString(id);
- }
- }