JEditorPane不尊重html表格高度100%
问题描述:
我有一个问题,我的JEditorPane不尊重HTML表格style="height: 100%;"
你有什么想法吗?JEditorPane不尊重html表格高度100%
JEditorPane jEditorPane = new JEditorPane();
JScrollPane scrollPane = new JScrollPane(jEditorPane);
jEditorPane.setPage(url);
JFrame frame = new JFrame();
frame.getContentPane().add(scrollPane, BorderLayout.CENTER);
frame.setSize(800, 600);
frame.setVisible(true);
<html style="height: 100%;">
<body style="height: 100%;">
</head><body>
<table style="height: 100%;width: 100%" border="1">
<tr><td>1</td><td>12</td></tr>
<tr><td>2</td><td>22</td></tr>
</table>
</body>
</html>
非常感谢
有没有解决方法? – Jonas 2010-01-07 14:58:02
也许看一看Swing XHTML渲染器的Flying Saucer项目 – Mark 2010-01-07 15:03:15