@# Quotes DB     useful, funny, interesting





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



Comments:

<0> can you show me how? I am uninformed
<1> not on top of my head
<2> Xevious: Tried my idea yet, or are you just gonna listen to somebody who has no clue?
<1> crookery : eh ?
<2> You said you don't know, but he's badgering you instead of getting on with it, seems pointless.
<1> crookery : there's a difference between no knowing specifics and "no clue"
<2> No clue... about this.
<1> besides i already told him to use your suggestion
<0> crookery I tried that
<0> menuBar.add (menuApplications);
<0> menuApplications.validate();
<2> No, menuBar.validate() or frame.validate().
<0> oh
<0> okay
<1> Xevious : poste the complete expample/test case to pastebin.com
<0> yay



<0> it works
<0> :))
<0> menuBar.validate()
<0> thanks
<2> np
<0> ;)
<1> this way crookery can get a clue, what he's talking about as well
<0> lol :)
<1> ahh it works - nvm - then
<2> The theory is that it doesn't update every time you add stuff, because that would be slow.
<2> When you've finished adding stuff, you tell it, via validate.
<2> It's all in the docs.
<0> =_+
<2> kmh: I didn't mean any offence, even if I insulted you directly I wouldn't actually mean any offence. ;)
<1> np
<0> look, I can't find any clear documentation on this type of thing
<0> else if (chosen.equals ("Calculator"))
<0> {
<0> calculator.main(new String[0]);
<0> }
<0> calculator is a compiled java cl***
<0> I want to run it from another program, how?
<3> that makes little sense.
<2> Xevious: Pretty much like that.
<2> ***uming it has a normal main method.
<0> ok, how exactly?
<0> it does
<2> Exactly like that.
<3> Xevious: it helps if you have some basic understanding of how Java works.
<0> ZOMFG
<0> SORRY
<0> It does work
<2> omgwtfbbq
<0> Lion-o, **** you
<3> Xevious: we love you too.
<0> really what kind of constructive commentary is that
<2> Xevious: Calm down.
<4> oi... behave
<1> bbq ?
<3> Xevious: you're clearly displaying a m***ive lack of understanding, I've witnessed your questions the entire day.
<3> Xevious: hence my comment/suggestion.
<0> well
<2> kmh: Good idea.
<0> If I don't understand
<0> whatever, I don't have to prove anything to you.
<4> if you dont understand, it helps to go read a book
<5> RIF Short for 'Reading Is Fundamental'
<2> I'd say 50/50 coding/reading is a good balance at least for a beginner.
<3> absolutely.
<3> if not a bit more.. Heck, I spend whole evenings reading and simply trying testcases. Still do from time to time. In those cases it tips to 90/10 for me.
<2> I automate my test cases. ;)
<3> hehe :-)
<2> I code and test simultaneously sometimes.
<2> In fact, earlier today I was coding, testing and having a bath all at the same time.
<0> Whats the point of memorising all the methods anyway if you understand how to use them?
<3> who said anything about memorizing?
<5> unit tests vs. test cases?
<5> Xevious: es geht ums lernen von allgemeinen prinzipien und grundlagen. fuer den rest sind die api docs und das tutorial da.
<5> nicht zu vergessen google und co.
<1> german ?



<0> ka :)
<0> *ja :)
<1> omgwtf
<5> lololololol!!!!oneone
<0> mm k
<2> LEVIN
<3> in short (translation): Its about learning basics, for the rest you have API docs.
<0> !!!
<2> Er, ELEVIN.
<6> anyone know how exactly to programming wit j2me
<6> my phone got a virus from a java applicaton
<0> get symantec antivirus for your phone
<6> where?
<6> can u gave a link Xevious
<0> um i'll try look
<0> its on
<0> www.f-secure.com
<6> thanks
<7> Okay, so I created public @interface Invisible {} and then put @Invisible in front of one of my methods. Then using reflection on the method I say if (method.getAnnotation(Invisible.cl***) != null) System.out.println("Invisible method: " + method.getName()), but it's always null, even for methods I've set the annotation on.
<8> is there a cl*** in java that allows reading file in this manner : string str = myFile.readString(); int i = myFile.readInt();
<9> hi
<9> i want to show list of dirs and files
<9> something like total commander
<9> where i can find some help?
<10> api docs
<3> It would depend on what it is you need help with. Basic io operations in Java? I'd suggest looking into the java.io package in... what jottinger said ;)
<8> done
<9> ok
<9> i found
<9> http://www.jchq.net/certkey/1101_12certkey.htm
<9> this is very good
<5> skazi: TUTINDEX Quickly locate information about your topic of interest in the *big* tutorial index: http://java.sun.com/docs/books/tutorial/reallybigindex.html
<11> Heyhey, is there any way to get a JOptionDialog to honor the size of a component used as the message? I am trying to add in a JTextArea limited with setCols() and setRows() but it alwayts expands it...
<11> sorry I mean a JOptionPane.showMessageDialog
<12> probably not, unless there is a way to change the layout manager
<12> may be add it to a JPanel and have a lyout in it that preserves it
<12> not sure if that can be made to work
<13> Hi ... why do I get a cl*** cast exception when doing (CastTo[])myVector.toArray() ? its really stumping me.
<5> asdfd: you can only cast to CastTo[] or toArray() returns something that is *really* a CastTo[].
<5> asdfd: see *all* methods called toArray.
<13> every element in myVector is type CastTo
<5> asdfd: see *all* methods called toArray.
<5> in the api docs.
<5> 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
<8> Is there a way to iterate through all components of a java swing GUI?
<5> asdfd: Object[] oa = new Object[1]; oa[0] = "Hello world"; String[] sa = (String[]) oa; -> cl*** cast exception. why?
<13> because String and String[] do not have a super/sub relationship
<8> I need to get all my GUI objects for language purposes..
<5> asdfd: nope.
<13> lol
<13> let me think
<13> i don't know what you mean by that sir
<13> other?
<5> asdfd: 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
<5> asdfd: look at the Vector cl***' methods.
<13> hmm
<13> so you have to specify an array?
<5> for toArray to know what type to spit out, yes.
<13> i see
<5> it will spit an Object[] reference at you, but the *real* type of that is whatever you p***ed in, so then you can do the type cast.
<13> well, that fixes my problem, but i'm still turning my gears over the example you posed above ...
<5> asdfd: what is the *real* type of oa?
<11> Lorraine_, you mean like all the components you put in a JFrame?
<8> Clackwell, do you use Java 1.5? The templates are so nice
<5> Lorraine_: yes i do, but i don't use templates.
<8> Zeek: exactly, everything that's in my GUI
<8> Clackwell: why not use templates?
<5> asdfd: you must not confuse the type of the array with the type of the contents, esp. when dealing with Object[].
<11> Lorraine_, you try getComponents()?
<13> i'm realizing this
<5> Lorraine_: they add complexity for me that i cannot justify. i rather type cast and not deal with understanding that stuff. i am not saying that there aren't cases where it is useful, but i don't have any such case, i believe.
<13> the *real* type of oa is String[]


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#linux
#linux
#skype
#chatzone
tudty
#AllNiteCafe
#linux
#linux
language arrivedercci
ubuntu no volume control gstreamer plugins devices found



Home  |  disclaimer  |  contact  |  submit quotes