I have a JEditorPane inside JDialog when it is loading JDialog I am loading a web page This web page Bigger size then JEditorPane So I want to display a certain position in the web page by default.
For example, I have a 175x200 size jdialog and JEditorPane I want to display the contents of the web page below approximately 150 pixels.
Is there a solution for this? Or there is another component that I can use to display the web page and at the time of loading, the web page can go to a certain position.
Another option, if you do not want scroll bars (personally I think that Paes The best answer is that you should just scroll to show the scroll bars and scroll it to appear) JViewport must use the self:
JVViewport Viewport = new review (); Viewport.setView (editor); Viewport.setViewPosition (new point (0, 150)); Viewport.setViewSize (new dimension (175, 200)); Viewport.setPreferredSize (new dimension (175, 200));
Comments
Post a Comment