@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> fatbrain : what do you mean by that ?
<0> constants like Pi ?
<0> or like const for objects in c++ ?
<1> kmh: err like what?
<1> yes
<2> Math.PI
<1> hehe, forgot I asked the question.
<2> const declarations = final
<2> public static final float PI = 3.141592653;
<1> ah, I like that notation better than const-keyword, thanks.
<0> yep
<0> but you cannot do other things const does in c++ afaik
<0> but they are not really needed
<1> no problemo
<3> any one here?
<3> hmmm.. do you guys know how to get the text from a textfield and then convert it to integer?



<0> Integer.parseInt
<0> and textfield.gettext
<0> so check the api docs for those 2 in particular
<3> okay.. thanks..
<0> so one think to remember is : the string to int conversion is not not found in the string cl*** but in the integer cl***
<4> When converting something look at the target object and its methods rather than the source.
<3> but what if i inputed a letter, what would happen? hmm.. i wonder
<4> I always liked that small hint, and it works for most conversions
<0> Lion-O : yeah that sounds useful
<0> bizkwet : if the letter is in your text field it will be treated as a string of length 1
<5> I want to instal Jcreator LE on my computer, I have downloaded Windows Platform - J2SE(TM) Development Kit 5.0 Update 8
<5> it's ok ?
<6> jcreator_LE: see faq on how to install and set up jdk.
<6> hallo everyone
<5> I want to install JCreator LE v3.5.0
<6> jcreator_LE: then go ahead. you don't need the jdk to install that.
<5> but runs without it ?
<6> jcreator_LE: yes. but it requires the jdk to compile java source code.
<5> and it's ok if I install that jdk on my pentium IV windows Xp Professional 32bit
<5> ^
<5> ?
<6> no, absolutely not.
<6> it will make your penis fall off.
<5> what i need ?
<6> what are you afraid of, another ****ed up installation, like with so many other windows programs? fear not.
<6> jcreator_LE: see faq on how to install and set up jdk.
<5> ok
<3> thanks for the infos kmh
<4> hm, reminds me that I still need to check out the beta of the java studio enterprise :)
<7> how do i include a cl*** from another file in the same directory into my program that contains the main method?
<4> dga: afaik we already told you yesterday.
<7> nope
<7> wasn't here yesterday
<4> pretty much so. But ok, for your amusement: write your own cl***loader.
<7> i don't think so
<4> suit yourself.
<7> i don't understand
<7> i guess i have to set an environment variable for CL***PATH?
<7> javac -cp Account.java Main.java doesn't work
<7> nm, it works automatically
<7> i ***umed all of my errors were because of not having them linked or whatever. sorry
<7> my apologies
<1> err, question: public Test<T> { public T value; public Cl*** getValueCl***() { ... } }
<1> what do I change ... to in order to return Integer.cl*** if T is Integer?
<1> new Test<Integer> foo; foo.getValueCl***() => ?
<1> (err ignore new-keyword)
<8> fatbrain> not possible
<1> aurox: How would you suggest I was able to validate that a certain instance of Test has a type T *compatable* with, lets say, Integer?
<8> public Test<T extends Number>
<1> T must accept String, Integer, Float.
<1> Can I extend the extends clause?
<1> err, add stuff to extends clause?
<1> <T extends Number, String> etcf?
<8> that will not work
<1> aurox: Thought it wouldn't :)
<1> hm... /me ponders...
<8> what for to validate?
<1> Basicly I want to restrict the input-field to whatever type the value property has, like if it's Integer I only want the input-box to accept 0-9... etc
<8> you can p*** Cl*** too
<1> care to elaborate on that?



<8> public Test<T,V extends Cl***> ...
<1> ah, rogers
<1> true, seems a bit redundant tho
<8> yeah, not very elegant :)
<1> I'll go nag on google for a while, thanks for your time.
<9> I'm trying to test my EJB-backed web app using TestNG and Selenium
<9> When I try to create a home interface to a session EJB, I get an error:
<9> rather, an exception
<9> Need to specify cl*** name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
<9> I think that the problem is that my TestNG framework is running in a different context (a different JVM?) to my web app.
<9> ...I'm a bit confused
<10> How do I copy a section of a BufferedImage ?
<10> getSubImage() basically returns a pointer to the original image, so that after I 'copy', and modify the original image, the copy also changes
<11> hi
<11> im wondering if anyone has good experience with tomcat... right now im having a weird virtual hosts problem
<11> where accessing my webapp through its domain name gives me a different version of my webapp vs if i access it via the ip
<12> smbclient -t smbfs //mis/Report /home/elaine/share -o user=melvin
<12> session setup failed: NT_STATUS_LOGON_FAILURE
<9> HexGhost: is it cached?
<11> actually
<11> i think i just fixed it
<11> for some reason it seemed to have been, but deleting the work/ directory in the CATALINA_HOME dir seems to have fixed it :)
<13> does anyone know if it exist a unescape function from the JDK 1.4 who convert &amp; to & inside a string?
<6> Jiggyw: i have never heard of such a method in standard java.
<6> Jiggyw: http://www.google.com/search?hl=en&lr=&q=decode+html+entities+java&btnG=Search
<13> yeah.. I didnt find standard method too....
<6> Jiggyw: see 6th link there (decoding html in java)
<6> it seems like a non trivial task if roedy green requires 500kb+ for that.
<13> I found something here: http://www.rgagnon.com/javadetails/java-0307.html
<13> but I prefer a standard method.. but if I cant found one.. i'll the a cut and paste of that
<6> Jiggyw: that thing looks too simplistic to be complete, and moronic because it uses string concatenation, which can become costly quickly, depending on how many strings with how many html entities you throw at it.
<1> Q: I've inserted a JSlider on my JPanel, must I do something special before it reacts to mouse-interaction? Now the slider-anchor just sits to the left, and ignores my mouse?
<6> fatbrain: afraid of freenode?
<6> fatbrain: no clue. i seem to recall that the tutorial covers use of sliders, but i don't think i ever read up on that.
<6> since you have the cl*** name, google might be helpful in locating working examples.
<6> also the java almanac might have examples. i'd start with a quick glance at the api docs though.
<1> thought I was still in freenode ^^
<1> 6am
<0> fatbrain : like with most gui controls you need to register a listener
<0> at least if you want to process the gui information
<1> kmh: Yes, I got it working, think it was something wrong with how I added it to the component using GroupLayout thingnie...
<0> ic
<14> Creating a variable inside a method or inside an if statement, etc means that variable only exists in that method or block, is this also the case with creating objects?
<0> yes
<0> well it depends
<0> objects depend on there references
<14> Thanks
<14> I was wondering why a method was working in one part of my program and not the other.
<0> if the only reference to the object was in that code block,then it won "exist" anymore and is due to garbage collection
<0> but if there another reference it will stay
<0> geez i type crappy today
<15> in windowClosing(WindowEvent we) method, how can i prevent the window from closing if there is a yes_no_option JOptionPane and the user selects no??
<0> ?
<0> just query the result of JOptionPane
<15> yeah. i queried it. if the user selects no (returns 1), how can i cancel the closing of the window?
<0> by not closing it
<0> you can control the the WindowClosing function
<0> it does whatever code you write
<15> the javadoc says: "Invoked when a window is in the process of being closed. The close operation can be overridden at this point." but i just dont know how
<0> by overriding it
<16> hi, how would you be able to determine a string's charset?
<0> if you you implement that methid it does whatever you code
<15> yeah i override it. i have a WindowAdapter that overrides windowClosing
<0> if you leave it empyt it does nothing (so your application won't close anymore)
<15> from the JOptionPane inside windowClosing(), if the user selects Yes (returns 0) i call System.exit(0). otherwise, i do nothing. the window sets to invisible
<15> how can i prevent that?
<0> oh
<15> yeah :(
<16> prevent what
<0> hmm maybe there are 2 functions
<0> one called for the gui event and another just for cleaning up purposes (but ***uming you are exiting anyway)
<15> prevent the window from being invisible when windowClosing fires
<15> @ chikoy


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

no adapters present radeon
#AllNiteCafe
#windows
priority_queue inheriting
#linuxhelp
linux Too much work on interrupt
#AllNiteCafe
discapacity quotes
#linuxhelp
#windows



Home  |  disclaimer  |  contact  |  submit quotes