Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 RCP 应用程序中添加了一个终端视图,我想在用户重新调整窗口大小时更改终端视图的字体大小。可能吗?任何帮助将不胜感激。
你添加了什么样的控制台?IOConsole 有setFont()方法。你可以监听这样的变化:
setFont()
parent.addListener(SWT.Resize, new Listener() { @Override public void handleEvent(final Event e) { System.out.println(parent.getSize()); //here change the font size } });