Results 1 to 2 of 2
  1. #1
    CODinacup is offline Member
    Join Date
    Sep 2012
    Posts
    13
    Rep Power
    0

    Default Change Font of Input Window

    Hi i am using a GUI class to make it easier on myslef; however, im having some troubles. I am making a program for my grandpa so that he can easily type in information and it will be saved to a file. The program is functioning fully, but iw wish i could increase the font of everything in the input window. Here are the methods that make the input window.

    This is the method that is used:
    Java Code:
       public String inputString(String prompt)
       { return input(prompt);  }
    This is the method that the previous method calls on:
    Java Code:
       public String input(String prompt)
       {  return JOptionPane.showInputDialog(this,prompt);  }

  2. #2
    CODinacup is offline Member
    Join Date
    Sep 2012
    Posts
    13
    Rep Power
    0

    Default Re: Change Font of Input Window

    Quote Originally Posted by CODinacup View Post
    Hi i am using a GUI class to make it easier on myslef; however, im having some troubles. I am making a program for my grandpa so that he can easily type in information and it will be saved to a file. The program is functioning fully, but iw wish i could increase the font of everything in the input window. Here are the methods that make the input window.

    This is the method that is used:
    Java Code:
       public String inputString(String prompt)
       { return input(prompt);  }
    This is the method that the previous method calls on:
    Java Code:
       public String input(String prompt)
       {  return JOptionPane.showInputDialog(this,prompt);  }
    I figured out how to change the font of the Text but i want to know how to change the font of the text that the user types in.

Similar Threads

  1. Replies: 8
    Last Post: 10-24-2012, 01:45 PM
  2. change font *jar
    By tritritri7121a in forum Forum Lobby
    Replies: 1
    Last Post: 04-30-2012, 09:29 AM
  3. change url in parent window from child window
    By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-09-2009, 12:17 PM
  4. Replies: 5
    Last Post: 04-25-2009, 08:00 PM
  5. How to change The Font
    By kader in forum New To Java
    Replies: 2
    Last Post: 09-15-2008, 04:09 AM

Posting Permissions

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