开发者

How to open browser at a preferred location and size with Desktop.getDesktop().browse(new URI(...)) in Java?

I use Desktop.getDesktop().browse(new URI(...)) to open a browser in Java. The browser's location and size is determined by the last time it was opene开发者_JAVA技巧d and closed.

Is there a way to tell the browser to open at, for instance :x=100, y=200, w=300, h=500, so it always opens according to my preference ?


I found an example that show how can you use a JEditorPane "to make" a simple browser. Maybe can help. Take a look at:

http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html

Hope help you. Good luck.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜