We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I used Swingbox to build the code, but the Chinese characters were garbled.
Test Method: ` BrowserConfig browserConfig=new BrowserConfig(); browserConfig.setDefaultFont(java.awt.Font.SANS_SERIF, "Arial"); browserConfig.registerDOMSource(DefaultDOMSource.class); BrowserPane swingbox = new BrowserPane(); JTextField input = new JTextField("file:///F:/Person_workspace/note-single-html/single/demo/simple-local.html"); JButton text = ButtonFactory.primaryButton("测试"); text.addActionListener(e -> { try { swingbox.setPage(new URL(input.getText())); } catch (IOException e1) { e1.printStackTrace(); swingbox.setText("加载html错误!"); swingbox.repaint(); } }); view.add(input, "grow"); view.add(text, "wrap"); view.add(new JScrollPane(swingbox), "span 2,grow");
`
simple-local.html Just a simple bootstrap example
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I used Swingbox to build the code, but the Chinese characters were garbled.
Test Method:
`
BrowserConfig browserConfig=new BrowserConfig();
browserConfig.setDefaultFont(java.awt.Font.SANS_SERIF, "Arial");
browserConfig.registerDOMSource(DefaultDOMSource.class);
BrowserPane swingbox = new BrowserPane();
JTextField input = new JTextField("file:///F:/Person_workspace/note-single-html/single/demo/simple-local.html");
JButton text = ButtonFactory.primaryButton("测试");
text.addActionListener(e -> {
try {
swingbox.setPage(new URL(input.getText()));
} catch (IOException e1) {
e1.printStackTrace();
swingbox.setText("加载html错误!");
swingbox.repaint();
}
});
view.add(input, "grow");
view.add(text, "wrap");
view.add(new JScrollPane(swingbox), "span 2,grow");
`
simple-local.html Just a simple bootstrap example
The text was updated successfully, but these errors were encountered: