I am trying to increase the text size of nodes in my Jtree. Is there a way to do this with / without changing other swing components?
Thanks!
Use JTree.setFont. For example:
JTree.setFont
final Font currentFont = tree.getFont(); final Font bigFont = new Font(currentFont.getName(), currentFont.getStyle(), currentFont.getSize() + 10); tree.setFont(bigFont);
Source: https://habr.com/ru/post/1714449/More articles:The stored function in MySQL does not match the dates provided by the user? - mysqlMSBuild требует 3 раза памяти Visual Studio для чистой сборки - memoryWCF proxies and userPrincipalName - identityVerifying that all JDBC calls occur in a transaction - javaHow can I control the default font sizes for swing UI without quaqua? - javaRun the DOS command in .NET. - c #Ruby on Rails field_for Form Helper Problems - ruby-on-railsАктивность PHP/MySQL (ala facebook) - phpHow to use PIL with Tkinter? - pythonASP.NET MVC C #: moving data from multiple tables / queries to a view - c #All Articles