这是我用来在JEditorPane中显示谷歌的代码
String url="http://google.com";
editorPane.setEditable(false);
try {
editorPane.setPage(url);
} catch (IOException e) {}
Run Code Online (Sandbox Code Playgroud)
但由于某种原因,背景将始终是蓝色,如果我打电话无关紧要
setBackgroundColor(Color.WHITE);
Run Code Online (Sandbox Code Playgroud) 从AbstractAction使用TextAction的目的是什么?以及如何将其用于以下内容:
插入符号
键绑定