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

    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
    Location
    Washington, DC
    Posts
    3,701
    Rep Power
    8

    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 - Play indie games, learn from game tutorials and source code, upload your own games!

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

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
  •