java - JEditorPane is read only -


i have application uses jeditorpane. on mac , java 6 without problems (it editable). now, i'm running java 7 , editor-panel read only. tried debug use breakpoint anywhere not read anymore. same applies when pushing button (which nothing opening message window). while resizing window not have effect. further, instance of panel used somewhere else without problems.

i'm running out of ideas how figure out goes wrong.

i tried reproduce error example. shows non-editable not sure @ whether connected @ all. have swt-dependencies in plugin, need use swt/awt bridge run example:

public static void main(string[] args) {  final display display = new display(); final shell shell = new shell(display); shell.setlayout(new filllayout()); shell.settext("undo-edit-panel");  composite mycomp = new composite(shell, swt.embedded | swt.no_background);  java.awt.frame filetableframe = swt_awt.new_frame(mycomp); jpanel panel = new jpanel(new borderlayout()); filetableframe.add(panel);   jeditorpane edit = new jeditorpane(); edit.settext("some text"); //put editor pane in scroll pane. jscrollpane editorscrollpane = new jscrollpane(edit); editorscrollpane.setverticalscrollbarpolicy(         jscrollpane.vertical_scrollbar_always); editorscrollpane.setpreferredsize(new dimension(250, 145)); editorscrollpane.setminimumsize(new dimension(10, 10));  panel.add(editorscrollpane, java.awt.borderlayout.center);  mycomp.pack();  shell.open(); while (!shell.isdisposed()) {     if (!display.readanddispatch())         display.sleep(); } display.dispose(); } 


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -