jmeter test plan navigation pane font size

2020-07-22 19:01发布

问题:

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?

回答1:

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.