Simulation in frame only appears when clicking border...

K

Kate

Hi I am currently creating a program using JCSP,

I am using a frame and an active canvas working in parallel and I have
a simulation taking place in the frame. It all works apart from one
thing - the simulation only appears in the frame if you click on the
border of the frame (as if to resize it). I have tried resizing the
frame but this doesnt make any difference.

Any help or ideas would be very much appreciated!!

Kate
 
O

Oliver Wong

Kate said:
Hi I am currently creating a program using JCSP,

I am using a frame and an active canvas working in parallel and I have
a simulation taking place in the frame. It all works apart from one
thing - the simulation only appears in the frame if you click on the
border of the frame (as if to resize it). I have tried resizing the
frame but this doesnt make any difference.

Do you do all the appropriate stuff, like packing the frame, setting
preferred sizes instead of absolute sizes, using layout managers where
appropriate, etc?

If you want more specific advice, you'll probably have to include an
SSCCE. To shorten the code, perhaps you can eliminate the JCSP stuff and
just have your "simulation" alternate between drawing a red and blue
rectangle.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top