Java standard edition (Dyamic Object generation)

hi.....i wanted to create object on click of button....any no of objec

Page 1 of 1

1 Replies - 284 Views - Last Post: 28 September 2010 - 04:49 PM Rate Topic: -----

#1 ravidhawan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-September 10

Java standard edition (Dyamic Object generation)

Posted 28 September 2010 - 04:45 PM

hiiiiiii
my name is ravai and i m devloping a project.......my problem is to creating objects at run time...means when ever i click a button a new object should be create that could be a button or label, text field or any swing component.
Is This A Good Question/Topic? 0
  • +

Replies To: Java standard edition (Dyamic Object generation)

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8315
  • View blog
  • Posts: 31,836
  • Joined: 06-March 08

Re: Java standard edition (Dyamic Object generation)

Posted 28 September 2010 - 04:49 PM

so ?

JButton b = new JButton();

in the actionPerformed() method of the original button
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1