Click here to Skip to main content
15,073,911 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on my major project. ITs a project where Logical Circuits can be draw and checked whether its working or not correctly...

I want to draw a JPanel(let say AND gate) on another JPanel(Let say Canvas)
at the point where I click on Canvas..
How to do it please tell me...!
Thanks in advance...
Posted
Updated 22-Mar-15 1:19am
v2

1 solution

please at some format to your explanation.
I get a headache when I try to read that.

Resize:
The positions for your Panels are no more valid in that moment of resize.
Make the position

- relative
using percent values, which you can use to calculate the new position
- absolute
using pixels and having no zoom effect.

in both options you have to repaint ALL the GUI - not just the basic main JPanel.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900