@# Quotes DB     useful, funny, interesting





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



Comments:

<0> Object[] pair = new Object[2];
<1> ah, finally things are starting to come togeather..
<2> ah yeah
<0> that's the uncool, non oo variant of course. :)
<3> Lorraine_ : you mean an ***ociative array or something like that ?
<0> yeah, Lorraine_, what do you need that for?
<3> all that stuff is in java.util (collections)
<2> k thanks, nah I just meant an object that can contain 2 objects
<4> Ok - I have a text box coded in swing in my application - how do you read information from a textbox once a button is clicked?
<3> Xevious : check the api doc of your textbox
<3> most likely it has a getText() method
<4> 'JTextField'
<3> if you have an ide just type something like mytextfield. and the ide will list the possible methods
<0> Xevious: APIDOCS The API documentation for the Java standard libraries ( download at http://java.sun.com/docs/ ) lists ALL cl***es (see link "All Cl***es") and ALL methods (see link "Index"): http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html
<3> otherwise just read the doccs of JTextfield
<0> Xevious: TUTINDEX Quickly locate information about your topic of interest in the *big* tutorial index: http://java.sun.com/docs/books/tutorial/reallybigindex.html



<3> hehe
<3> or ask Clackwell for his favoured url
<4> http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTextField.html
<4> thanks :P
<5> hey Clackwell
<5> my friend :)
<0> the tutorial contains chapters about using buttons and menus and jtextfields and the like.
<0> hi shark
<5> howdy ?
<5> it's been a while
<5> the ircd
<5> :))
<5> that used to crash without reason
<0> oh, yeah, that :)
<5> well, without -apparent- reason
<0> quite a nut to crack
<5> ;)
<5> i'm planning to rewrite it again
<0> haha
<5> with byte[]
<5> and StringBuffer
<5> i need help with the parseCommand(byte[] myByteArray)
<5> readLine() does converstion to string
<5> that **** with utf8 character
<0> implement your own readLine()?
<5> what would you do to read a line that is send to the server socket ?
<5> yes
<4> ahh
<4> I love it when things work
<4> its great :p
<5> it reads byte until \r\n
<5> returns a byte[] of it
<5> what do you think ?
<0> shark_: sounds like a not so flexible variant of readLine() :)
<5> the byte[] return are parsed into the parseCommand()
<5> in here they are converted to string for analysis
<5> but they are kept as byte[] as well
<5> so they can be send after to the outputstream
<5> i have to shutdown internet
<5> i'll be right back
<5> i'll get new router
<6> Noo, we're using it!
<5> :)
<5> see ya later
<5> ++
<0> bye shark
<4> is there any way to 'grey out' a menu
<4> so that only once you've done something you can access it?
<4> like menu.hide()
<4> or something
<0> Xevious: read the java tutorial about menus and the api docs?
<4> I read the textfield one's.
<0> textfield != menu
<4> thats obvious
<4> ;p
<0> then why did you mention the textfield api doc reading when it is equally obvious that i didn't ask for that?
<0> :)
<4> :)
<4> Because I read what was necessary for my previous question
<4> I mean, I was wondering if you knew off-hand.



<0> Xevious: i try to avoid helping people to be lazy.
<4> hehe
<7> lunch time, later all
<4> well my amazing 14,4k internet
<4> makes it very hard to download application documents
<4> or view them :
<4> :)
<0> Xevious: download the api docs.
<4> 14,4k internet
<4> downloads at 0,6kb
<6> Xevious: If you have the JDK you have all the API docs, just in a different form.
<6> src.zip in the JDK is what the API docs are generated from.
<6> You can read the files directly, use some viewer/IDE to only show you the documentation, or generate your own API docs.
<6> 14.4k is no excuse, take a laptop to a coffee shop.
<6> Or get boredband.
<0> Xevious: rubbish about the 0.6 kb/s
<4> lol
<4> I'm in South Africa
<0> Xevious: get the api docs or forget about java. you need them, really.
<0> being in south africa is unrelated as far as i can see.
<4> :P Okay.
<4> Well, at 5 PM
<4> in like two hours
<4> I get 64kb :P so then I can download.
<6> Get to a real country.
<4> ok :)
<6> One where you have to stop at traffic lights.
<4> HAHA
<4> Erm
<4> South Africa isn't that bad
<4> the world cup is here in 2010 :)
<6> So stop making excuses. ;)
<4> :(
<4> excuses>
<4> but ok.
<6> Ah, great, I'll arrange for Ronaldo to be shot.
<4> probably wouldn't be too hard
<6> They'll probably miss; he'll be mid-dive.
<4> I'm German anyway, we should win :P
<0> yeah. hopefully the german team will have learned how to do some decent p***ing by 2010.
<6> I thought Germany, England and the Netherlands looked dispirited in attack.
<0> actually their last game wasn't so bad in that area.
<4> They owned Portugal
<4> I reckon they would have beat Italy in penalties
<4> but that was a lucky shot :p
<4> (two) ;P
<3> 2010 a south american team will win again
<4> apparently java can't add a menu drop down bar once its running
<4> lies
<3> Xevious : i kinda doubt that
<3> all gui is created while running
<4> well
<4> menuBar.add (menuApplications);
<4> doesn't add a menu, but if I add it further up in the code, it does
<3> there's probably a bug in the code
<3> further up in the code still means it is running already
<6> Xevious: container.validate();
<6> e.g., frame.validate()
<4> eh?
<3> but their might be a certain sequence of commands needed after menuBar.add (menuApplications); to ensure it is displayed as well
<6> Xevious: What?!
<4> lol
<3> crookery's suggestion might be one of them
<4> Kmh, its not your suggestion, I've proven the contrary
<4> but I'll try his
<3> adding a visual object _does not_ necessarily mean that it will be displayed automatically
<4> oh, not on the fly no
<4> I mean if I put it with the other menu objects
<4> I've got like a p***word box
<4> and when you press the button its supposed to give you access to the other menu
<3> yes you can do it on the fly, but you need to do it _the right way_
<4> thus the necessity to add on the fly
<4> ok.
<4> can you show me how? I am uninformed


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#MissKitten
#chatzone
how to remove mesa
#gentoo
fucken bored
thegohan
mysql md5ed
#chatzone
#MissKitten
udevdb



Home  |  disclaimer  |  contact  |  submit quotes