Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Plug-in misbehaives

 
Gennady Shapiro
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone tried to resize a java plug-in on a html page? It won't resize, unlike <Applet>.
Simple code like below does not work for me.

function resizeTree() {
var width = document.body.clientWidth;
var height = document.body.clientHeight;
document.DocumentTree.setSize(width, height);
}

...
<jsp lugin type="applet"
code="qitanalytics.gui.tree.TreeViewer"
codebase="/classes/QITAnalytics@QITAnalytics"
name="DocumentTree">
<jsp arams>
<jsp aram name="scriptable" value="true" />
<jsp aram name="mayscript" value="true" />
<jsp aram name="treedata"
value=
"<%=tree.write(location)%>"
/>
</jsp arams>
<jsp:fallback>
<p>unable to start plugin </p>
</jsp:fallback>
</jsp lugin>


Suggestions anyone?
Thanks
P.S. sorry for stupid faces, they replaced ":" + "p"
[ March 28, 2002: Message edited by: Gennady Shapiro ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. sorry for stupid faces, they replaced ":" + "p"
That is too funny.
Sorry though that I can't help with the actual problem. I haven't seen or tried that.
Mark
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for stupid faces, they replaced
Edit your post and "Disable Smiles" at the bottom before saying "Add Reply" or whatever the button says.
- satya
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of the JDK are you using?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic