2

I have coded my calculator in simple mode, I have added a button for Scientific Mode too, by clicking on this button it should open a scientific calculator window. Now i want to get idea from you people how to do it ? Should i use two frames for this purpose or something else? Please give an idea.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
codo
  • 45
  • 1
  • 9
  • 1
    *"Should i use two frames for this purpose"* See [The Use of Multiple JFrames, Good/Bad Practice?](http://stackoverflow.com/a/9554657/418556). *"..or something else?"* See the plethora of options mentioned in the linked answers. – Andrew Thompson Apr 02 '12 at 15:15
  • Thanks Andrew I have found your discussion very useful, learned much from it. – codo Apr 02 '12 at 15:27

1 Answers1

3

You could always just use two panels and CardLayout.

Spencer Kormos
  • 8,381
  • 3
  • 28
  • 45