Results 1 to 9 of 9
- 10-23-2012, 02:33 PM #1
Member
- Join Date
- Aug 2012
- Posts
- 35
- Rep Power
- 0
how to change font size of input text in awt in textfield
hello,
I wish to change the font size of the text in text field.I wish that the font should be of bigger size.
I am trying to design a calculator and input is taken from clicking the buttons only.
Please help me in light of awt only.
I have take look at java doc and found that it is in java.awt.font package and textAttribute is responsible but unable to resolve issue.'
thanks.,
regards.
- 10-23-2012, 02:53 PM #2
Re: how to change font size of input text in awt in textfield
Why are you using AWT and not Swing?
What did the API for TextField tell you?How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 10-23-2012, 03:39 PM #3
Re: how to change font size of input text in awt in textfield
Moved from New to Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 10-23-2012, 04:23 PM #4
Member
- Join Date
- Aug 2012
- Posts
- 35
- Rep Power
- 0
- 10-23-2012, 04:58 PM #5
Re: how to change font size of input text in awt in textfield
Swing has pretty much replaced AWT. You should probably be using that instead.
But either way your answer lies in searching the API: Java Platform SE 7How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 10-23-2012, 05:18 PM #6
Member
- Join Date
- Aug 2012
- Posts
- 35
- Rep Power
- 0
- 10-23-2012, 05:36 PM #7
Re: how to change font size of input text in awt in textfield
You are looking for a way to set the font. Start there.
How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 10-24-2012, 08:50 AM #8
Member
- Join Date
- Aug 2012
- Posts
- 35
- Rep Power
- 0
- 10-24-2012, 01:45 PM #9
Re: how to change font size of input text in awt in textfield
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
how to increase font size of text that user types in dialog box?
By pfeldman in forum AWT / SwingReplies: 3Last Post: 12-01-2011, 11:09 PM -
how can I change font size?
By rippon in forum AWT / SwingReplies: 6Last Post: 11-10-2011, 02:42 PM -
How to change font of text?
By sandeep43 in forum New To JavaReplies: 3Last Post: 06-30-2011, 06:01 AM -
Change the Font Size and Text Position
By stayfierce in forum New To JavaReplies: 1Last Post: 12-03-2009, 05:17 AM -
what is that method to change the size of a font in an applet?
By javanoobita in forum New To JavaReplies: 4Last Post: 02-22-2009, 06:31 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks