🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16726

Getting the current JTree font

#16726
From: Leo Cohen
Date: Mon, 25 Jan 1999 00:00
21 lines
878 bytes
I have created a JTree with 

	JTree jTree = new JTree();

and then try to get its font with

	Font font = jTree.getFont();

This produces font = null.

How do I get the current, presumably default, font for JTree?
-- 
Leo Cohen

116-1 Howard Drive
Charlottesville, VA  22903

804-243-8922 (UVA)
804-244-4648 (home)
804-244-7922 (fax)
lcohen@cs.virginia.edu
Technical Details
Message-ID: <36ACC165.4F58865A@cs.virginia.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,82eb0e8f536b4c8e,start
X-Google-Attributes: gidf74b3,public
From: Leo Cohen <lcohen@cs.virginia.edu>
Subject: Getting the current JTree font
Date: 1999/01/25
Message-ID: <36ACC165.4F58865A@cs.virginia.edu>
X-Deja-AN: 436784249
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language