| |
| |
| |
|
Page: 1 2 3
Comments:
<0> I've been playing around with graphics in java... notably doing 'screensaver' type of gradients or such with shifting colors and drawLine...but what I'm wondering is, currently to get an animated change I just run a ton of drawLines via a loop that causes it to run slow enough to show it drawing, but of course that uses the whole processor... how would I go about similar thing without using the whole processor? <0> http://diehealthy.org/java_stuff/DHOApptest.html if you want to see an example <0> though that is small enough it shouldn't use the whole processor...it does draw more than you can see though, so I'm thinking if I could add a slight delay it would look more animated and also it would use less processing? <1> slight delay? <1> read about wait() method or thread.delay <0> okay <1> Object.wait() <2> hi <3> duuuude <3> where is your cave ? <2> :) <2> I've visited more than 100 caves in my home state <4> ok <4> which state is that ? <2> in times gone past
<2> Arkansas <3> lovely <2> havent had time to cave in years unfortuantely <2> cave meaning cave exploration <2> otherwise known as spelunking <4> does it include underwater caving ? <2> www.caves.org <2> not for me <2> I'm not a diver <2> and even if I were i probably would not go cave diving <3> not diver but a caver <3> as the nick says :) <3> caverdude : in which state are you now ? <2> kmh Arkansas <2> near the capital <2> kmh what about you? <3> i'm in europe <5> morning <3> hi jottinger <6> hey who can teach me here on how to package and import my cl*** <6> ? <3> http://java.sun.com/docs/books/tutorial/ <6> thx! <3> look under first cup/first steps or something <3> http://kilian.byethost5.com/computer_science.xhtml has some java primer links (including free books) <6> what is the sysntax in java is the getch() in c++? <5> heh <5> _Sn3Ker_: java has no direct equivalent <3> _Sn3Ker_ : are you writing a console application ? <6> jcreator <5> java's going to be like cin << ch <3> jcreator ? <6> nope <6> i mean i am using consele application <7> java ****s huge gay coarks <6> lolx <3> talios : too late :) <8> for? <3> offering bunk a cup of tea <8> mmm tea, its almost midnight.. mmm tea <3> talios : ahh sorry you've just joined <3> i thought you've opped yourself in reaction to bunk <3> <7> java ****s huge gay coarks <3> just before you joined <8> coarks? i'm sure it ****ed cocks, maybe that was last year <3> actually his spelling/grammar could be considered entertaining i guess <3> which ones ? <8> Metal: A Headbangers Journey, and Brick. <3> interesting titles <9> is that gay corks? <8> http://www.brickmovie.net/home.html and http://www.metalhistory.com/ <10> wow, Java has a coark package now? Hmm, Java, Wine and stale bread :-) <10> java.coark.uncork(new java.coark.winebottle()) :-) <11> Hi, if a cl*** implements an interface, can i just use methods of that interface as i`d use methods of that cl*** ? <12> yes c-wof <11> wolfey, ok, thankyou :) <12> if you just want interface, cast it to interface, you shouldnt need to worry exactly what cl*** it is <11> wolfey , to be more exact, i want to use methods described by that interface : http://java.sun.com/j2se/1.3/docs/api/java/util/Map.html in a HashTable. <12> well it's Map you can use it as Map
<11> Hmm... means i will have to convert the hash table to a Map? Sorry, i didnt used maps before... <12> well there's HashMap too you know <12> Hashtable is a bit old stuff <11> I saw it... hmm.... lets see... <12> look old collections were adjusted to new interfaces <12> but if it's new code, you should use new stuff not old <12> like ArrayList instead of Vector <11> Looks nice, and has exactly the method i was looking for :) <12> good then <13> hey, I have a final cl*** filled with defines only (I know, I could use enum). In another cl***, i have one instance of such a cl*** and I try to use some of the defines in the case-statements of a switch(), it complains that a constant expression is required <13> is there anyway to fix this easily? <12> wouldnt know sorry <12> never really used final cl***es <3> java has define ? <13> nup, Ihave a cl*** and within it a whole bunch of public static finals <3> oh ok <13> I want to use those in a switch() <1> how ar u doing the case? <3> that should work afaik <3> post the exact code at paste.bin <3> maybe the error is something else <13> aliveuser: that q just made me realise I was using the local variable representing the defines cl*** instead of directly doing Defines.VAR <13> :) <13> thanks! <1> :) <14> hi guys, i need a few help with velocity portlets and jetspeed-2 <14> i just want to know what i have to put in the portlet.xml <14> please! all the documentations i've found so far are not very clear <14> thanks <15> Hi <15> I'm after some advice regarding which is the best package to use to parse an XML file from disk, modify it, and then write it back out. I have spent a couple of hours trying to get JAXB to work (jar files...), to no avail, and am not really sure if this is perhaps overkill or what. Any ideas anyone please? I've read about SAX, but it apears that it cannot write xml files, only parse them. <12> tiggger: well writing xml is easy thing to do yourself <12> and SAX works well <12> DOM i heard is more tricky <15> hmm I guess so <15> I think sax is for me since i may be dealing with very large xml files in the future <15> am I correct in saying that sax doesn't explicitly handle writing xml files? <12> i never saw option to write with SAX <15> yeah same here <12> just use PrintWriter or something <12> and do that <tag>data</tag> yourself <15> yeah, good idea. <15> I just hope sax is easier to setup than jaxb <12> it's fairly easy. just one thing.. it serves you one tag at a time and if you have same tags at different depth in XML tree, you need to keep track where are you now, with ArrayList or something <12> basicly you get tag and do string comparision with tags you expect <12> that's it <15> yeah, I heard there is no context management <15> thanks for the tip. no doubt I@ll be having lots of fun with datastructures <12> well we chose programming cause we hate being bored... <12> isnt it so? <12> :) <15> hehe true <15> I never get angry when programs don't work, but when I can't set something up (like JAXB), I get very angry! <12> i didnt bother to try more complicated stuff than SAX. i had fairly simple use for it, as storing my program's settings and i had freedom to choose what XML would look like anyway <15> yeah, I know what you mean. I just get easily carried away, when in actual fact I just want it to work rather than faff around with beautiful code :-) <12> well only beautiful code is code that is just right for the job <15> that's also true <12> unless you are trying to impress your teacher with writing another accounting program <12> then you need to rely on fancy drawing of UML <12> ;) <15> no, i try to steer away from UML as much as possible... <12> i had to impress my teachers. and UML has some nice use <15> I know it's great and all that, but I just get flashbacks of very boring lectures whenever I use it. Except for use cases---they're fun. <12> i especially liked sequence digrams. they show the calling stack pretty wel <12> well <12> use cases are silly:) <15> you're not calling stick men silly are you? <12> ::) no of course not:) <15> I'm glad to hear it! <15> sequence diagrams remind me of swimming pools <12> well use cases are good to identify possible value of future program to its users <12> that's it <12> sequence is great <12> you show how objects come to life
Return to
#java or Go to some related
logs:
#chatzone #linux 12WHAT WAS IN THE SANDWICH IN THE 1983 HIT 'DOWN UNDER'?
Limit user input +char +C++ +cin #linux #linux boost mpl tutorial kid #cristi undernet bree scheese
LITTLE SHOEMAKER 1954
|
|