相关疑难解决方法(0)

浏览器使用JEditorPane强制蓝色背景

这是我用来在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)

java url swing colors jeditorpane

9
推荐指数
1
解决办法
1088
查看次数

如何使用TextAction

AbstractAction使用TextAction的目的是什么?以及如何将其用于以下内容:

java swing action key-bindings jtextcomponent

5
推荐指数
2
解决办法
1246
查看次数

标签 统计

java ×2

swing ×2

action ×1

colors ×1

jeditorpane ×1

jtextcomponent ×1

key-bindings ×1

url ×1