0

kind of a newb so I couldn't quite get the other answers.

So I'm making a program where you keep track of exercise feedback. Every set of exercises has a different amount of exercises, so I can't put 10 fields and hope they're enough.

So I have a frame which contains scrollpane and a panel and in there are some general textfields concerning the coursework. Underneath I need to dynamically add panels according to the users whish. Any idea how to do this?

The general panel My window

The panel I need to add dynamically to the empty space of the previous panel. enter image description here

Ema Black
  • 63
  • 1
  • 12

1 Answers1

0

you can create it and setVisibile() to false. Than when the user click or another action you set this panel to true :) if you want to ADD it dinamamically , this is the question:click here

Community
  • 1
  • 1
Francesco Taioli
  • 2,687
  • 1
  • 19
  • 34
  • That wont work, because I can still create a set amount of fields. A coursework might have 5 or 50 questions, and it just isn't feasible. In any case, this project is over, so – Ema Black Jun 17 '16 at 14:15