This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Please help. I developed a PDF and Tiff image viewer as an applet.
Its working fine, but I have the following problem.
Applests cant resize, so now I'm trying to drag the applet of the page by using the new Alt + Leftclick,
The new draggable functionality from Java 1.6.10.
It works fine, but I want it to become a windowed frame so that it can be resized.
With the new Java 1.6.10 release you are nou able to drag and drop you applets out of a web page to be stand alone applications on the desktop, using Alt + Left click.
It works fine, but once you have done so, you cannot resize the applet. This is due to the fact that the applets parent containter is a Frame without any features. It only gives you a little black x at the top right to close the applet which anchers it back to your page.
I have mangange to detach the applet by using the following code, but I would like to keep the Alt + Left click functionality and force the applet into a visable framed window that can be resized.
Meaning, I would like to be able to minipulate the parent container that is created by the Draggable functionality now available in 1.6.10.
public void putInFrame()
bStandalone = true;
dimOrigSize = new Dimension(getSize());
myParent = getParent();
myFrame = new DetachedJFrame(this,"Image Viewer");
Dimension siz = new Dimension(dimOrigSize);