3

I was able to change the font size for jMeter by adjusting UIDefaults, as shown in this SO answer to Change Swing font size from command line.

However, the navigation pane on the left for test plans still has extremely small font. Is there any way to change this?

Image of the navigation pane.

Community
  • 1
  • 1
jdoejmeter
  • 31
  • 5

1 Answers1

0

Yes, it's possible.

Open jmeter\src\core\org\apache\jmeter\gui\MainFrame.java and find this method:

private TreeCellRenderer getCellRenderer() {
    DefaultTreeCellRenderer rend = new JMeterCellRenderer();
    rend.setFont(new Font("Dialog", Font.PLAIN, 11));
    return rend;
}

Change the value of font size from 11 to what you prefer and rebuild project using Ant.

That's how Jmeter looks after changing this value to 24.

amseager
  • 5,795
  • 4
  • 24
  • 47
  • How to rebuild with Ant. This folder doesn't have `build.xml` – catch23 Apr 26 '16 at 08:07
  • can you explain more about ant re-build? – catch23 Apr 26 '16 at 08:27
  • You can download jmeter project from here: https://github.com/apache/jmeter. There is some info about using ant in readme. Basically, you'll need to just run 'ant' in console in order to rebuild jmeter. – amseager Apr 26 '16 at 09:34
  • github sources has different signature: `private TreeCellRenderer getCellRenderer() { DefaultTreeCellRenderer rend = new JMeterCellRenderer(); return rend; }` – catch23 Apr 27 '16 at 18:42
  • Ok, seems it has been changed since I answered to this question (11/27/15). You can try to manually add rend.setFont... method, I suppose it should work too. – amseager Apr 28 '16 at 14:20
  • Also I've heard that jmeter 3.0 will have some new features for hdpi monitors or smth that should obsolete that hardcoded rend.setFont method. I think the github trunk already contains these modifications. Can't check it now though. – amseager Apr 28 '16 at 14:24