I am running into one weird problem. I have a JtextPane inside a JscrollPane which is showing large string in term of distribution list and it is properly wrapping code when I am running the program using eclipse but when I am running the same program in using java webstart it stopped wrapping the text. Could you please tell me what should I do. Here is the code.
private JScrollPane displayResults(String distributionList) {
// TODO Auto-generated method stub
JTextPane textArea = new JTextPane();
textArea.setText(distributionList);
textArea.setEditable(false);
JScrollPane scrollPane = new JScrollPane(textArea);
scrollPane.setPreferredSize( new Dimension( 500, 500 ) );
return scrollPane;
}
well for me this work
The reason could be java version.
See https://forums.oracle.com/forums/thread.jspa?messageID=10690405 where it is discussed and a workaround is provided