Results 1 to 4 of 4
  1. #1
    Billaguana is offline Member
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default creating an interface

    I am creating an application which, with 4 args provided by user, will produce the X and Y positions needed to center lines of text on certain heights and widths. I am currently learning Java in school and we just got into graphics and haven't learned how to receive input from user. So, to get to the point, I am asking someone to either teach or just type up an interface which has 4 different text fields (I can go in and edit it to put the text field names) which will be double values.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by Billaguana View Post
    I am creating an application which, with 4 args provided by user, will produce the X and Y positions needed to center lines of text on certain heights and widths. I am currently learning Java in school and we just got into graphics and haven't learned how to receive input from user. So, to get to the point, I am asking someone to either teach or just type up an interface which has 4 different text fields (I can go in and edit it to put the text field names) which will be double values.
    No can do. No one here is going to do your homework for you nor will we be able to teach you how to code as the first request is immoral and the second is just not feasible given time constraints. We can answer specific questions though and can also direct you to the Swing GUI tutorials which you can find here:

    Swing Tutorial
    Really Big Index

    Much luck!

  3. #3
    Billaguana is offline Member
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default

    hahahahahahahahahahahahaha. ok. had to catch a breath. 1st off, thanks for helping me on my last question. 2nd off, this is not my homework. I enjoy programming and am actually doing this for a friend. 3rd off, this may have sounded as though i wasnt going to do anything but it was not intended as this. I was more or less only asking for someone to tell me how to implement text fields onto a driver or panel so that the user can input the variables or args and the panel or driver return them as doubles to the main. I think that is how it would work. I would never ask someone to do my work for me. I agree that is just wrong or immoral. Sorry.

  4. #4
    Fortu is offline Member
    Join Date
    Dec 2010
    Posts
    57
    Rep Power
    0

    Default

    If you're using args (as in the args from public static void main(String[] args) ) then why don't you just use a simple:

    Java Code:
    String string = args[0];
    for whatever you need the data in args for?

Similar Threads

  1. Creating API Interface
    By ashanti in forum New To Java
    Replies: 2
    Last Post: 09-19-2008, 03:08 AM
  2. Creating a Thread using the Runnable interface
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 06: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
  •