Results 1 to 3 of 3
  1. #1
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Rep Power

    Default Input with Swing

    Hi I just made a program that gives you the Y intercept of an equation but now I want to make it on Swing so that it is actually useful. How can I do this I know how to make a textbox and all of that but not how to make it get input thank you!

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: Input with Swing

    If you know how to make a textbox (I assume you mean JTextField or JTextArea), they have useful functions for getting the text. Check out the API for whatever component you're using, as well as the Swing tutorial: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Rep Power

Similar Threads

  1. Replies: 2
    Last Post: 04-26-2012, 05:59 AM
  2. Replies: 1
    Last Post: 11-14-2011, 01:03 PM
  3. Replies: 0
    Last Post: 10-14-2011, 12:33 AM
  4. Swing input
    By Yuuki in forum New To Java
    Replies: 8
    Last Post: 11-05-2010, 11:50 AM
  5. Polled keyboard input through swing
    By Prometheus in forum Advanced Java
    Replies: 2
    Last Post: 02-04-2008, 04:05 PM

Tags for this Thread

Posting Permissions

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