Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+13 votes

How can I create two panels in the same panel ?

asked in CSC211_Winter2018 by (1 point)

1 Answer

+1 vote

This is just a thought that I had but you should be able to create a new DrawingPanel and set the location within the main DrawingPanel. So you would create a new DrawingPanel with "DrawingPanel = new DrawingPanel(x,y)" and then set the new location of it in the window with ".setLocation(x,y)". Hope this helps!

answered by (1 point)
...