Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 1st, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to set value of textfield into passed value of constructor
  2. class hello{
  3. String a;
  4. public hello(){
  5. this(0);
  6. initcomponents();//contains gui
  7. jTextField1.setText(a);//i want to get the value obtained from the constructor with param
  8. }
  9. public hello(int id){
  10. this a=Integer.toString(id);
  11. }
  12. }