Results 1 to 10 of 10
  1. #1
    rws
    rws is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default Is this the right language?

    Hello guys!

    Some how I thought, that it is possible, to do it in Java, although I don't know a thing about this programming language.
    I wish to know, if it is possible to create a simple program, in which it would be possible to draw simple lines, like in paint, but much precise and easier. I would like, that it would be possible to specify exact length for these lines, to modify the length or delete the line at all.
    How do you think, is it possible in Java?

    Best regards!

  2. #2
    Nakira is offline Member
    Join Date
    Oct 2008
    Location
    Aberystwyth
    Posts
    55
    Rep Power
    0

    Default

    Yes it is possible but i suggest that if you have no experience in Java then get learning fast if this is the language your going to choose. If you want to be able to see everything your changing similar to a paint program then you'll need to learn swing too.

  3. #3
    rws
    rws is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default

    Holly molly!
    What is swing?

    I don't think it will be possible for me to learn them both!! ;)) I think it will be enough with one... he+he..

    I didn't understand clearly about that visibility. There might be some problems with it? Imagine you would need to drew a rectangle, so you would start form one corner and by 5 clicks in the drawing area you would draw the rectangle form 4 lines. Then for example you would wish to convert this rectangle to triangle, so you would delete 2 lines and add the third one. And off course every thing is visible, else you will not be able to draw that triangle correctly!?

  4. #4
    Nakira is offline Member
    Join Date
    Oct 2008
    Location
    Aberystwyth
    Posts
    55
    Rep Power
    0

    Default

    Quote Originally Posted by rws View Post
    Holly molly!
    What is swing?

    I don't think it will be possible for me to learn them both!! ;)) I think it will be enough with one... he+he..

    I didn't understand clearly about that visibility. There might be some problems with it? Imagine you would need to drew a rectangle, so you would start form one corner and by 5 clicks in the drawing area you would draw the rectangle form 4 lines. Then for example you would wish to convert this rectangle to triangle, so you would delete 2 lines and add the third one. And off course every thing is visible, else you will not be able to draw that triangle correctly!?
    Going on what you just said you'll need to learn swing. Swing is part of Java it is basically the area of Java that allows you to create GUI's. Just learn Java over the next week or so solidly and then learn Swing for about a week after that, then you should know enough, plus the help from here you should be able to have it done in the end.

  5. #5
    rws
    rws is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default

    Is there some limits for these lines?
    Is it possible to get out coordinates for each line in the end?
    Is it possible to zoom in and out, in case there are lots of long and small lines?
    Is it possible to point that some lines must be horizontal, some vertical, and some can be aligned as user wishes?
    Is it possible to draw curved lines?
    Is it possible to snap to lines or to some kind of grid?

    If all of this is possible, then you have convinced me!

  6. #6
    xcallmejudasx's Avatar
    xcallmejudasx is offline Senior Member
    Join Date
    Oct 2008
    Location
    Houston, TX & Flint, MI
    Posts
    609
    Rep Power
    6

    Default

    I came across a simple paint program using Swing so I know the basic idea is possible. Canvas lets you draw objects onto it and using mouse events you can get co-ordinates and then manipulate your lines that way. I havn't done anything along the lines of what you want but from what I've stumbled upon and read it seems possible, probably challenging, but still doable.

  7. #7
    rws
    rws is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default

    Thank you for the support!

  8. #8
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Default

    Try David Eck.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  9. #9
    rws
    rws is offline Member
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Default

    I tried to search here on "David Eck" but nothing. What do you meant by that?

  10. #10
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    Lightbulb Introduction to Programming Using Java

    David J. Eck
    WELCOME TO the fifth edition of Introduction to Programming Using Java, a free, on-line textbook on introductory programming, which uses Java as the language of instruction. This book is directed mainly towards beginning programmers, although it might also be useful for experienced programmers who want to learn something about Java. It is certainly not meant to provide complete coverage of the Java language.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. Oriented language
    By pawankumarom in forum New To Java
    Replies: 1
    Last Post: 09-08-2008, 01:12 PM
  2. Is JAVA the right language?
    By EDENO in forum New To Java
    Replies: 3
    Last Post: 08-08-2008, 12:29 AM
  3. IDE for new language
    By mitra2008 in forum Eclipse
    Replies: 2
    Last Post: 06-23-2008, 06:43 PM
  4. V language 0.004
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-19-2007, 03:18 PM
  5. TOM programming language 2.5
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 08:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •