473,322 Members | 1,703 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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..nothing fancy..can anyone help pls
Jun 5 '08 #1
5 2053
Laharl
849 Expert 512MB
What have you done so far?
Jun 5 '08 #2
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
Jun 5 '08 #3
JosAH
11,448 Expert 8TB
@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
Jun 5 '08 #4
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.whichever is easier for you.

and code must be able to be as simple as possible.
Jun 7 '08 #5
BigDaddyLH
1,216 Expert 1GB
I agree with Jos. This sounds like a good problem use as the opportunity to learn the MVC design.

http://en.wikipedia.org/wiki/Model-view-controller
Jun 7 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: sean | last post by:
I'm having problems trying to sort a series of authors who post online using Movable Type. I've tried posting my problem to the Movable Type support group, but no one has even answered my question....
0
by: Fuzzyman | last post by:
Movable Python has just been released on sourceforge. Movable Python is a frozen distribution of Python. It will run python scripts without needing to be installed. ...
1
by: Mircea | last post by:
How I can create a movable component, for example a button, in run-time? Thanks
2
by: Ryan Ternier | last post by:
Hello, I'm looking at creating an application that allows users to create their own templates, and thought of using the same idea's MS used when creating http://sympatico.my.msn.com/. I looked...
10
by: Hello | last post by:
Hello, How to prevent user from moving the form at run time. At the same time, I want to keep my control box and form border. Thanks, Douglas ^^
0
by: Fuzzyman | last post by:
It's finally happened, `Movable Python <http://www.voidspace.org.uk/python/movpy/>`_ is finally released. Versions for Python 2.3 & 2.4 are available from `The Movable Python Shop...
6
by: Kristian Frost | last post by:
Hi, I'm trying to add, as you might guess, mouseclick listeners to the shapes I am drawing using the GDI+ commands in a similar sort of way as could be done with the old VB "shapes". Problem is,...
0
by: alwayssmiling | last post by:
Hi, Im drawing some shapes on the image surface (i.e when im displaying the image ) with the help of graphics. Since i want to move thsese shapes from one place to other place in the...
1
by: trint | last post by:
How can I add movable windows to my c# dotNet web app? Do I have to convert the whole thing to AJAX or is it even known how Google does this? Thanks, Trint
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.