I just started learning Java (Currently, I know basic swing components like JPanels, text areas, textfields etc) and I have chosen a Logic Circuit Simulator as a project. My objective is to simulate the working of logic gates by making circuits using drag & drop. So far, I have thought about putting the devices in a JList and then making a JPanel for the circuit area. The users will drag out of the JList and onto the JPanel where the circuit will be made. But I have no idea how to implement this in java. Please give me some directions as to how to go about with this.
v3ga
Recommended Answers
Jump to PostHere's the code I used in a tutorial a while back to illustrate some of the techniques for exactly this kind of app. The lecture "notes" were all in my head, so the code is all there is. I'm posting it here in case it turns out to be useful …
All 4 Replies
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
v3ga
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
v3ga
commented:
Thankyou. This way is much easier than using java.awt.dnd +2
v3ga
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.