我想用一些文本和特定的徽标和页脚打印标题,其中包含一些文本和页面编号。 如何在标题上添加图像? public class JEditorPaneTest {
public static void main(String args[]) {
JEditorPane pane = new JEditorPane();
JScrollPane js = new JScr
我想在JScrollPane中嵌入一个JEditorPane,它是一个JFrame里面的矩形,就像在HTML中一样你有一个网页,然后可以有一个小矩形在具有另一个网页的iframe的网页上。我有一个使用setBounds定义矩形的原因是因为矩形比实际窗口小,因为窗口中还有其他元素。 JEditorPane web = new JEditorPane();
web.setEditable(
我有一个JEditorPane在一个窗口中的矩形内,因此它不会填满整个窗口。但是,当HTML页面变得太大时,它会将其切断,而不是放入滚动条,我知道我需要JScrollpane或其他东西,但我不希望整个窗口中的滚动条只在矩形内。 这里是我的代码片段(rweb已经被定义为一个矩形): JEditorPane web = new JEditorPane();
web.setEditable