@# Quotes DB     useful, funny, interesting





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



Comments:

<0> Wow, the rapture is upon us.
<0> Jesus in #java
<1> Resonator: He left though.
<1> Resonator: Maybe he'll come back in a couple of days.
<2> it is said in Eckel's book that one difference between static and non-static inner cl***es is that an outer-cl*** object is not necessary in order to create an object of
<2> a static inner cl***.
<2> but it can be done with non-static inner cl***es
<2> how come?
<3> good afternoon all
<2> i was able to create an object of a non-static inner cl*** without creating an instance of the enclosing cl***
<3> so i'm having a bad case of confusing langugages and have a quick question... if i p*** an object to a method then modify data within that object, does it modify the original object within the calling method or is a new "copy" of that object created within the scope of the called method?
<3> i know how it would work in c++, but im a bit confused right now
<0> Doc^: that depends on the object
<0> Doc^: String objects, for example, are immutable
<0> Doc^: but most of the time you're p***ing the object by reference, and you can change the values in the object by using the methods defined on it
<4> hello everyone.... I was doing Java update on my windows xp but in a certain moment I got an error like "Error recognizing transformations" and it was interrupted.. what would be that? SUN ftp problems? I also cleaned Temporary Internet Files directory but nothing....



<0> Doc^: but doing something like public void doStuff(Object r) { r = s; } will not modify r to point to s
<3> thats what i though Resonator. in this case, it's a user bean, containing info about that user. p***ing the bean to a "model" method to do some stuff
<3> na something like doStuff(Object r) { r.setAge(23); }
<0> Oh okay, yeah, then you will be changing the object. If you're doing doStuff(User u) { u.setName("George"); } that actually changes the object being p***ed in.
<0> Right
<3> ok so i'm not completely crazy ;)
<0> Nope, you've got it.
<2> http://javafaq.mine.nu/lookup?3&wb=true
<2> i am completely confused now
<0> You didn't define the inner cl*** as static?
<2> no
<2> i am using the gnu compiler btw. but i dont think that is the reason
<0> A non-static inner cl*** requires an instantiation of the inner cl*** in order to be created.
<0> (if I'm wrong here, someone please correct me!)
<0> If you want to instantiate an inner cl*** without instantiating the outer, then you'll have to declare the inner cl*** as static.
<2> yes that's what i read from Eckel's book
<0> That makes the cl*** standalone in that it doesn't depend on the outer cl*** being created first.
<2> but i tried making it non-static.. but it works still
<0> It shouldn't
<2> it did
<2> heh
<2> i deleted the previous compiled cl***es
<2> same thing happening
<5> Brgtte: the gnu compiler can create MANY unpredictable results.
<5> if you can simply don't use it. Its by far Java compliant.
<2> ok
<0> Brgtte: http://javafaq.mine.nu/lookup?4&wb=true
<0> You may have already known that, but it's a useful demonstration...
<0> If you uncomment the line under "This WILL NOT WORK", it *should* produce a compile error.
<5> yeah well... I have seen too many things like this which in the end all pointed to gnu's horrid java impersonation that I'm fairly sure about the cause of the problems.
<0> Lion-O: sounds that way!
<5> Resonator: there is a reason why I hate it with a p***ion :)
<0> I've had no experience with GNU's Java compiler at all, so I really didn't know. :)
<0> Brgtte: you're welcome!
<0> And at that, I'm going home~
<0> Have a good :)
<0> good one too.
<5> Resonator: you too! Talk to you later
<6> must go now 2 dell xps m1710 laptops price 800 for both 500 for one, as well 1 dell xps 600 tower computer with monitor keyboard and mouse, price 700. message me if interested on aim at itscrazymikeeh or msn at heymikeeh@hotmail.com
<7> Clackwell ?
<5> oh, him again? He spammed our channel also on a regular basis, untill we tracked him and most of his hosts down :P
<8> Gretings!
<8> Anyone around?
<9> salam
<10> hi there
<10> simple question, when i add a jtextfield into a panel, the text field takes all the space of the panel even the height
<10> is there a way to make it take only the width but not the height?
<10> i actually have several jtextfields, i want to put them one under another... but they seem to resize to fit the height of the panel
<10> im not holding my breath
<10> no rush lol
<10> everybody is asleep?
<11> Creative1: what's the problem here?
<10> layout
<10> > simple question, when i add a jtextfield into a panel, the text field takes all the space of the panel even the height
<10> > is there a way to make it take only the width but not the height?
<10> > i actually have several jtextfields, i want to put them one under another... but they seem to resize to fit the height of the panel
<11> Creative1: yes there's is
<10> how?



<11> http://jgb.sourceforge.net/index.php
<11> or use the layout managers
<11> a little bit tricky though
<10> im using the layout managers
<10> playing with gridbaglayout
<10> no luck still
<11> bbl gonna have some lunch
<12> is there someway for me to overwrite the contents of a simple text file other than deleting it and creating it anew?
<13> yes. open it, start writing away.
<12> things won't be appended?
<13> have you tried it? have you seen the api docs?
<13> there is this "boolean append" parameter in case of FileOutputStream's constructor.
<12> yeah, I'm looking at the docs right now...
<12> evidently just at the wrong places :P
<13> it doesn't make it easier that the java.io package consists of 50+ cl***es.
<12> hehe... :)
<12> hmm...
<13> i am not saying that FileOutputStream is the correct choice, however. you'll have to test if it is. namely if it truncates a 20 mb file down to 1 byte if you write1 byte to it.
<12> it's really ok...
<12> all I want to do is write a long to a file
<12> and overwrite the last one
<12> if it existed
<13> it could just as well be that you want to overwrite the first byte only.
<13> since both are likely modes of operation there may need to be a way to specify that, or it may not be supported. but you'll find that out soon enough.
<12> hehe :P
<12> I guess I will
<13> a bit disappointing that the api doc page doesn't explicitly say how it will behave in such a case.
<12> yeah...
<13> i ***ume that it will truncate any existing file down to the number of bytes written to it - if you write to it at all.
<12> I could use ObjectOutputStream
<12> I think, *shrug*
<13> why does clarify that specific point? if not that's voodoo programming, *hoping* that this cl*** will do the right thing.
<12> eh?
<12> I'm reading...
<13> erh, sorry
<13> does the api doc page for that cl*** clarify that specific point?
<12> no...
<13> so, voodoo programming, alright.
<13> i made it a habit to stick to the simplest stream cl***es possible.
<12> well, I didn't read the entire entry so it might say it somewhere..
<13> others go the other way around. they seem to have more issues than i have with their stream choices.
<12> I just want to write(long) and forget about it
<12> hehe.
<13> also consider that writing a "long" can mean different things. you might be of the opinion that this includes converting the long to a text string, so that you can open the created/written to file with a text editor and see that string in there.
<13> if you are of the opinion that the long should be written into the file in the form of the 8 bytes that it represents in the jvm, you might still have to think about which order you expect the bytes to have.
<13> that way something seemingly trivial becomes far less trivial all of a sudden, if you just look at it long enough.
<13> anyway, good luck, bed time.
<12> thanks :)
<12> I'll try both just for kicks :D
<12> right now I'm trying the text one
<12> g'nite.
<14> Hello .
<14> I need some help.
<14> Could anyone please offer me some help ?
<14> I've written an aprox 600 line programm which is meant to a "Data Base" of a company...it has one MAIN cl*** and 4 implementations from it...I've made some options like... add / show / search / delete / sort and I don't know how to save all the information in FILES...I've also read tutorials about accesing and saving files but it didn't help me...
<14> ..
<15> high
<15> how can i put a red wavy line under a word in JEditorPane?
<16> morning
<17> hi
<17> take for instance reading from a file, how do you not handle exceptions with that and yet still catch errors and handle them?
<17> to make this more clear, with c: int c = fgetc( file ); if ( c == EOF ) { printf( "we're done\n" ); return -1; }
<17> ***uming that's a function not-main
<16> omeoml: what?
<18> is the primary sound driver and your specific vendor driver as listed by mixer infos the one and same thing? by this i mean is there any difference in quality in the sounds or they're same cause they're the same drivers
<19> erm how is that #java related
<18> java sound api
<16> then why did you ask in #C++?
<18> the questin is phrased differently
<18> the question is relevent in both channels.. although can be debated not too much, but relevant nonetheless.... anyway anyone have an answer or what
<16> if it's your primary sound card, the driver is the primary vendor driver
<18> are you saying the primary sound driver is using the primary vendor driver?
<16> indeed, unless it's able to use the default OS driver for that card
<16> for one thing, it depends on OS. Since you're asking, I'll ***ume it's windows.


Name:

Comments:

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






Return to #java
or
Go to some related logs:

terdaw hafna
#java
kurt cutajar
What is the nearest country to the UK to have staged the Winter Olympics ?
kaisa-maria inget
tatengers
#networking
#c++
sweet_honey london
submit to ggole



Home  |  disclaimer  |  contact  |  submit quotes