Results 1 to 3 of 3
  1. #1
    Gamedisolver is offline Member
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Default How to add text and show text?

    I need to make the number in the JTextFrame into a integer

  2. #2
    penguinCoder is offline Member
    Join Date
    Oct 2012
    Location
    Tempe, Arizona
    Posts
    77
    Blog Entries
    12
    Rep Power
    0

    Default Re: How to add text and show text?

    You didn't give to much in the way of details here.. If you are trying to switch a double or float into a integer, you just have to cast it.

    Java Code:
    double dbl = 7;
    int integer;
    		
    integer = (int) dbl;
    If that's not what you are talking about, so more details would probably be needed..

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default Re: How to add text and show text?

    Quote Originally Posted by Gamedisolver View Post
    I need to make the number in the JTextFrame into a integer
    What is a "JTextFrame"? I've never heard of this creature.

    If you need help, please give us more information that would allow us to better understand your problem.

Similar Threads

  1. JPasswordField show a default text ?
    By garnachito in forum New To Java
    Replies: 2
    Last Post: 05-28-2012, 02:12 AM
  2. Java text boxes does not show
    By zAxOanL in forum New To Java
    Replies: 0
    Last Post: 03-25-2012, 05:08 AM
  3. get text and show it and save it
    By pinar.n in forum AWT / Swing
    Replies: 1
    Last Post: 07-03-2011, 08:05 PM
  4. show text file to textArea
    By louboulos in forum New To Java
    Replies: 14
    Last Post: 06-12-2011, 02:16 PM
  5. Show Text with cursor
    By ravjot28 in forum AWT / Swing
    Replies: 3
    Last Post: 01-20-2010, 10:30 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
  •