Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple get-it-started sample program

 
Castor Tack
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all:

Where can I find a simple GUI program that does the following thing:
1. contain some object (object's details like shape, color, don't matter, It can be a circle, square, line, whatever)
2. user can select the object by clicking on it
3. user can drag the object and move it while clicking on it

I just want a sample program to get myself started.
Thank you in advance for any inputs.
 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello buddy try these codes they compile and work.. it a great source
 
Atul Darne
Ranch Hand
Posts: 118
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[deleted]
 
Thakur Sachin Singh
Ranch Hand
Posts: 248
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai you both...follow the rules of this forum...Atul can give help to beginners not the complete program.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49751
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thakur Sachin Singh wrote:hai you both...follow the rules of this forum...Atul can give help to beginners not the complete program.
Agree. You are by no means helping anybody learn by posting lots of code like that; in fact you may be depriving him of the opportunity to learn if he simply copies the code. Don't be annoyed with me, but I have pulled rank and deleted that post. Please avoid giving a complete answer like that.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49751
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread would sit better on our GUIs forum: moving thread.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic