@# Quotes DB     useful, funny, interesting





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



Comments:

<0> hello
<0> anyone here to help me with basic thing ?
<1> ask. don't ask to ask.
<0> :D
<0> anyone fix my small code ?
<2> I just did 8)
<0> any help ?
<3> anyone can help me to fix my java code ?
<4> Oooops Clackwell, you kicked kmh !
<5> is there a methode to write to JLabel?
<5> and by write i mean to change the text that it displays
<2> I'm pretty sure of that. Check the api docs.
<6> i think its setText()
<6> but better check the api or www.thejavatutorial.com
<6> theres a complete swing tutorial there



<2> Basicly there should be no difference between changing and initially setting it.
<2> unless, ofcourse you used the constructor to define that. iirc thats the usual way.
<5> yea it's just my book says that you can change it for some reason???? says to use JTextField
<2> KB***: I doubt that.
<5> yeah api says that there is a setText
<6> JTextField, its a textfield, not a label
<5> i know that's why i asked
<7> "can change" ?
<7> KB***?
<6> i recommend u to check www.thejavatutorial.com, they review each component of swing, including labels, textfields, formatting textfields, etc
<7> setText(String text) - Defines the single line of text this component will display.
<5> yeah i got it now
<7> odd that. last i heard swing components support multiple lines by way of html...:>
<7> holy cow, they should really make that bit easier...
<7> i mean...what else would i report a bug or rfe for but the api docs when i am in the api docs? either the api implementation or the documentation...
<7> good night.
<2> Clackwell: I usually download 'm :)
<2> Clackwell: So far all API docs as well as tutorials and the likes have made it onto my intranet. Only when I spot a bug do I try it online and send that link (and not even all the time) :)
<2> Clackwell: and a good night ofcourse as well ;)
<8> Hello
<9> hello
<10> how do i fix this:
<10> String slash = "\";
<2> well, you don't since that doesn't require fixing.. btw; I'd suggest using the pastebin in the /topic before dumping more code here.
<10> pastepin?
<10> *bin
<10> im confused
<10> but ya, it doesnt work. All other strings work like "String period = ".";" so im confused
<9> String slash = "\\";
<10> tried it, it appears as "\\" and not "\"
<2> I fail to see the problem, but let me try a quick testcase
<10> ok, thanks
<2> the compiler should have warned you there.
<10> it did
<2> Then say so.
<10> "unclosed string literal"
<2> It makes the problem a lot more clear than merely dump a piece of code in here and leaving us to guess about it.
<10> Ill remember that.
<2> I doubt it. anyway.
<2> escape it.
<10> escape?
<2> you need to close the string literal, you do so using another \. easy.
<10> hm ok
<2> as aurox already explained.
<10> inside or outside the quotes?
<2> Scroll up, aurox's comment is still on my screen.
<10> Yes, i tried that already.
<2> it works.
<10> nto for me
<10> *not
<2> if you say it gives you \\ you're talking nonsense.
<10> am i?
<2> public static void main(String[] args) { String slash = "\\"; System.out.println(slash); }
<2> guess what that gives you?
<9> heh, <2> even checked that
<10> ok, got it
<2> aurox: ofcourse. its 3am here, at that time I don't think straight. Thats what testcases are for.
<10> i restarted my comp and did the "\\" thing again and it worked
<2> Hel-Pa_Sklib: sure, sure.
<2> time to get some sleep.



<10> sorry about the confusion
<10> thanks for the help
<9> Hm, how computer restart could help
<10> dunno
<9> magic
<9> :)
<9> <2> i wonder what makes people stay online until 3am
<5> ehhh is it possible to send an integer to a methode "by reference) or send the pointer to that integer?
<5> *method
<5> in swing how can i pause the code untill i get user input from a text box?
<6> disable everything i think "setEnabled(false)"
<11> Heyas, a bit of a XML DOM Document question; for a given Node from an in-memory document, is there any way to get a particular element as a String?
<5> ??? can you expand that? like in command mode i just do input.nextInt() [input being Scanner(System.in)] so the code will pause untill the user inputs something in. Now in GUI i have a text box popping up and i need the user to input something in there..
<6> Kb*** as before, i recommend u to read www.thejavatutorial.com, read the swing tutorial
<6> u could archieve that with JOptionPane using it in modal mode
<5> ok another question now i'm trying to get input from the console and put it in the JTextField then get another input and put it in another JTextField now the problem that i have is after the first input is enter i setText on the first textfield but the gui doesn't update
<5> i don't see the text
<5> only after i input everything does the JTextField update
<5> so is there any way to force it to update after every settext methode?
<12> I'm asking for user input (an int) using the Scanner and I have a try/catch block to catch any exceptions if a non integer is enter, inside my catch block is: inputNumber.skip("[.]"); which I ***ume would skip everything in my inputNumber, but it's not. Can someone tell me what's wrong with that command?
<13> is there in java a method for finding the AB matrix when you have A and B?
<1> There isn't a built-in matrix package, no
<13> ok. thanks
<1> I would be supprised if there weren't packages availible online though
<13> ill try make one :) i just need a multiplication method
<14> anyone here with experience with jboss and quartz?
<15> Hello, #java!
<16> morning
<1> morning
<15> I keep getting timed out O_o
<17> How would I force Java VM to load a cl*** (in order to run the static init), without using reflection and without explicitly creating an object of that cl*** (since for all purposes, my program is only aware of it after it performs the static init)
<18> You'll have to use a telepathic transponder, the system can't know what you want to do unless you tell it to otherwise.
<2> Hmm, probably by writing your own cl***loader.
<17> dwork: :(
<18> Are you running the jvm instance inside some sort of JNI trap? Or as stand alone?
<17> stand alone and as applet.
<18> Forget it for the applet, you could maybe get away with it on stand alone with a custom cl***loader, but I'm not 100% sure and it's a royal pain in the bum.
<17> ye. probably.
<2> Well, a custom cl***loader isn't all that hard actually. You might even get away with tweaking the default one. But when it comes to an applet I don't think this is easily done, if not hardly possible. It would need to download the cl*** prior to using it, and that collides with the security manager on the client box.
<12> I am having huge problems with writing to a random access file, I have some writeUTFs which write my Strings perfectly, but my writeInt either doesn't write an int if it's 2 digits or less, or, if it's 3 digits or more it writes a random character, rather than the int. Does anyone have any idea what's wrong?
<19> Anybody here?
<19> I have something to ask about JButton.enable
<20> sorry, i'm beginner, Hohenheim
<19> Here's my question anyway
<19> I compile my program, with lines such as JButton.enable( false )
<19> But the compiler says it's depreciated
<19> What's the updated version of this? :)
<20> no idea, hehe
<19> Hehe, okay, i'll just wait for an answer or something
<21> just check the JDK docs
<21> mine say "Deprecated. As of JDK version 1.1, replaced by java.awt.Component.setEnable(boolean)."
<19> setEnable?
<19> wait i'll try that
<19> Asriel I imported java.awt.Component.*; and tried setEnable
<19> but whenever I compile it, it can't find the method
<20> and it work?
<19> can you try it on yours?
<19> no. haha
<20> :(
<2> Hohenheim: Check the API docs. Asriel didn't mean to use setEnabled() from the Component cl*** but most likely this method is inherited by JButton.
<19> Okay, thanks.
<2> hm, indeed. A mere check learns me that JButton inherits this from javax.swing.JComponent
<2> aaah cool. Now I see; JComponent is the inheriting cl*** here. Hmmm, cool 8)
<2> java.awt.Component => javax.swing.JComponent => javax.swing.JButton :)
<17> javac bug (false positive "may not have been initalized"): http://pastebin.ca/162454
<2> well, a bug in the program, not in javac.
<17> follow execution path. program can never get to a_2.doThing() if it's null.
<17> or uninitalized.
<17> if you delete the first part of the condition/set it works.
<1> Can you really do ***ignment in an evaluation?
<17> yes. ***ignment returns the ***igned value.
<2> Zaph0d^: thats not the issue


Name:

Comments:

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






Return to #java
or
Go to some related logs:

ronnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
#php
#linux
#MissKitten
always on bottom dhtml scroll page
ubuntu apache change error_log
#javascript
sold your ass to the devil
dilbert mfu1
fuckyoursister



Home  |  disclaimer  |  contact  |  submit quotes