movable Shapes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • taishin
    New Member
    • Jun 2008
    • 4

    movable Shapes

    i need to create an applet with netbeans that draws shapes and once drawn can be moved with the mouse within the window. shapes are circle, rectangle, square, and a triangle.
    should create each of them probably using Check boxes and must be able exist all at the same time unless the checkboxes is deselected. the size of each shape can be predetermined so the end user doesn't have to determine size..program must be as simple as possible..nothi ng fancy..can anyone help pls
  • Laharl
    Recognized Expert Contributor
    • Sep 2007
    • 849

    #2
    What have you done so far?

    Comment

    • taishin
      New Member
      • Jun 2008
      • 4

      #3
      mate so far i got only the user interface with no code behind it..i don't know where to start..in need of all..starting to end

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        @OP: I removed your other identical thread. There is no need to post your
        question multiple times.

        w.r.t. your question: at the least your shapes should be able to draw themselves
        relative to some coordinates (e.g. the mouse pointer or any other coordinate).
        That allows them to be dragged and dropped. In order to D&D, a shape should
        be selectable by some means (think of that mouse pointer again).

        Your application should manage a list or collection of those shapes. It should be
        able to add another shape to that list and delete one again. That's where that
        selectable feature comes in again.

        You fill in the details and come back here with more detailed questions again.

        kind regards,

        Jos

        Comment

        • taishin
          New Member
          • Jun 2008
          • 4

          #5
          well i need an interface with check boxes. if i select the check boxes then the shape appears. if i deselect the check box the shape dissappears. the shapes would not have to be created specifically at the mouse pointer coordinates but must be able to be dragged and dropped with the mouse.

          shapes be able to co exist. mean that all shapes can be selected or one at a time.

          shapes can be just blank white filled or colored.whichev er is easier for you.

          and code must be able to be as simple as possible.

          Comment

          • BigDaddyLH
            Recognized Expert Top Contributor
            • Dec 2007
            • 1216

            #6
            I agree with Jos. This sounds like a good problem use as the opportunity to learn the MVC design.

            Comment

            Working...