Results 1 to 2 of 2
Thread: changing font size
- 12-25-2008, 06:41 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 55
- Rep Power
- 0
changing font size
Hey guys. For a project that I'm doing just for practice, I am making a very simple notepad type application. In my frame I have a little text field at the bottom which the user can use to change font size. I want to make it so that the font in the textArea changes to whatever value I put into the font textfield without me having to click on any buttons - just typing in a new value should trigger the font change. I tried using a standard actionListener on the text field but it didn't work - I've been unable to discover a method to do this. Does anybody have thoughts on how I might be able to pull this off?
- 12-25-2008, 08:48 AM #2
Similar Threads
-
Changing size of Array
By ravian in forum New To JavaReplies: 3Last Post: 06-05-2012, 09:17 PM -
How to change font/ font color etc in a graphic object using JCombobox?
By JavaInLove in forum AWT / SwingReplies: 5Last Post: 04-25-2009, 09:00 PM -
how to set font size for a xml value
By bala_kj in forum Advanced JavaReplies: 3Last Post: 04-01-2008, 12:00 PM -
Swing - Changing component default font
By Java Tip in forum Java TipReplies: 0Last Post: 03-11-2008, 11:52 PM -
JTable with Font
By Rama Koti Reddy in forum AWT / SwingReplies: 1Last Post: 12-12-2007, 06:22 PM
Bookmarks