| |
| |
| |
|
Comments:
<0> romania? <1> when i run my applet consisting of swing gui componenets with appletviewer it works fine, but when i view it in mozilla firefox (im on kubuntu) it dosn't display it properly and i have to hover over elements for them to apear sometimes, and it eventually freezes. <1> would this be a problem with the run time environment itself, i think i have sun java 5 run time environment <2> whiting: probably the runtime environment, yeah. If you're using Linux then its very likely to be caused by that <censored> piece of <censored> called "GNU/Java" which is totally incompatible with the real thing. <1> ok kool, and do you know why appletviewer runs so much slower then when in a browser? <1> or is this just me, <1> because everything i make runs better in the browser (except my latest swing applet which dosn't run) <2> no idea from mind <1> hmm, it says i alread got the latest versions of sun 5
<3> whiting_ : i haven't noticed a big loss of speed in the appletviewer but i hardly use it <4> ah ok, must be just my configuration then. <5> I've got a freak problem... <5> "The method createfont(int, File) is undefined for the type Font" <5> But JavaDoc plainly states that there IS a (int, File) constructor <6> createfont? <6> java is case-sensitive <5> Dear lord I **** <7> can anyone help me with a javascript problem? <5> Dear lord I ****. I've spent 15 minutes on this @#$#@. :D <7> ok ... thanks Clackwell ... <5> Thanx Clack. Appreciated. <6> np :) <8> morning <5> How could I ***ign a static final to a value that requires catching an exception? <5> for instance I have a "private static final Robot myRobot = new Robot()" <5> but I must enclose that in a try catch bracket so I tried doing <5> private static final Robot myRobot; <5> and then in a static { try { myRobot = new Robot(); } ... } <5> But it doesn't want to work <5> Do I need to create a static method and call that one? <3> robot ? <3> .... bite my shiny metal ..... <5> MIRKO CROCOP is the PRIDE GP CHAMPION HOOAH <9> j2me is invite only? <1> should i except strange things to happen if i run a swing applet from a browser and don't set up the html properly? <1> strange things being, buttons don't appear until i roll over them and certain cl***es apear not to load <1> buttons don't work etc <3> what do you mean by settig up html ? <1> special things in the <applet> tags or something <3> no <1> i was reading that swing required it? <3> but you need to make that the plugin is installed <1> i checked with a friend <1> same thing happenend for him
<1> on windows, using IE <3> if the plugin is installed browsers work with the usual applet tag afaik <1> http://www.neongames.net/random/SS2/mainApplet.html <1> if u move over the middle of the page with the mouse, buttons apear <3> but if the plugin is not installed it will run on some old browser java which definitely will cause problems <1> do u have the plugin installed? <3> that looks more like programming bug (wrong usage of swing) <1> but it works in appletviewer? <3> hmm that might be an odd artefact <1> hmm <3> if you use swing incirrectly unfortunately you can can rather odd not at transparent bevahiour <1> i did what u said, used cardlayout <1> Jpanels for each card <3> yes <3> but there might lotsa things that can go wrong which i can't tell just by having quick look <3> swing is in that sense unfortunately not programmer friendly <3> it is a mighty api, but it has non transparent side effects <1> learn by experiance? <1> sorta hard to find the error when it works in appletviewr but not in browser <3> unfortunately or read a lot to avoid a view traps <3> i can only say the behaviour looks like a refresh problem, which _can_ be caused by inappropiate swing use <3> same problem in opera and netscape <1> http://javafaq.mine.nu/lookup?3&wb=true , thats the mainApplet cl*** anyway, <1> mabye there is something very obvious <1> what do you think? <1> iv stripped it down to minimum and it still does it <3> hmm dunno ic no obviois error <3> but you can try invalidate or something to enforce a refreshing of the display <1> but also its not displaying the backgound image <1> and when u hit play it dosnt switch to the play screen <1> so its like its not uploading those files/cl***es ? <3> also strictly gui elements should be added inin the EDT (another swing tweak) <1> EDT? <3> event dispatching thread <3> swing is not thread safe (for performance reasons) but that results in some odd coding (i.e. any manipulation of gui components should happen in the EDT) <3> check the swing tutorial for that (EDT, multithreading in swing) <1> this is strange, <3> even though you are not explicitly doing multithreading yoursself, the system (Java) is multithreaded by default/design <1> ok ill look into it tomorow, gota go to bed, <1> thanks for the help <3> so my guesses are it is EDT related and/or can be fixed with enforcing display refresh
Return to
#java or Go to some related
logs:
.htacces for dummies #javascript #linux +ubuntu +tulip_stop_rxtx +failed #windows #linux #javascript #AllNiteCafe javascript opera innerHTML offsetWidth #linux
|
|