@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> I need some help using Eclipse. It's probably a really easy problem for someone who has used Eclipse before. Anyone willing to help?
<0> HELLO???
<1> hello all!
<1> see i was trying to be able to get to this place to ask one question
<1> who would like to answer please?
<1> anybody therE?
<1> ?
<1> hello!
<1> wtf man
<1> this aint a channel this is a hangout of dumm and deff pppl
<2> morning
<3> Hey there
<4> hii can anyone give me some info
<4> i heard there was a earthquake and tsunami in java
<5> nvrbnkssd_m: Please do not /msg me.



<5> This channel is about Java programming, not Java the island.
<4> ok sorry
<3> lol
<5> But do not fret, the bloggers reported that the Java programming language is dying, so you'll get the channel back shortly.
<3> I am having a problem with some coding .. I am trying to load a free forums webpage in an iframe, and there seems to be some sort of frame detection coding in java format, is there any way to get around this coding and load the page in an iframe?
<5> I think you mean JavaScript.
<5> This channel is about Java programming, not Java's Crypt.
<3> something of the sort, the page re-directs itself so that it dosent have to be in a frame
<5> Would you ask a Latino to help you learn Latin?
<3> I couldent tell ya'
<6> Hi-.-- How to set the Focus for a JTextComponent?
<7> requestFocus or something
<6> Thanks
<7> did you the check the Api ?
<6> How cna I check the Api for the Focus?
<5> Vetox: google JTextComponent API
<5> Also it might be wise to put your version number in when you google, e.g.:
<6> Mmm
<5> Vetox: google JTextComponent API 1.5
<6> Thanks
<7> Vetox : http://java.sun.com/j2se/1.5.0/docs/api/
<5> kein problem
<7> either look for the cl*** JtextComponent or under (really big) index for requestFocus since you know that name now
<5> requestFocusInWindow might be more appropriate.
<7> what's the difference ?
<6> platform dependent
<5> You will see when you read.
<5> In other words, I can't remember.
<7> platform depended - yuck - and that in java
<5> Java has plenty of platform dependent doodahs.
<6> The platform depended is the different between requestFocus and requestFocusInWindow
<6> difference
<7> yeah just read that
<7> it is annoying much plarform dependent is still buried in the apis
<7> i.e. it is rather easy to write code that breaks when the platform changes
<5> So test on each platform that you deploy to.
<7> yes, you gotta do that any
<7> just saying it is annoying considering the original design goals/claims of java
<7> ....write once debug everywhere.....
<5> However, one goal of Java is backward compatibility, and that conflicts with WORA somewhat, because Sun won't fix old mistakes.
<7> WORA ?
<7> oh regarding the platform compatibility
<7> well the least they could do it flag those things consistently as deprecated but they don't
<7> which is a setup for a big mess, there's no way to approach those problems systematically , it it buried somewhere in documentation footnotes
<8> Ook stupid newbiew question but i never serialized before; How do i read a serialized array ?
<5> Using ObjectInputStream.
<8> Object people[] = in.readObject();
<8> oviously that is incorect because in.readObject() does not return an array but a single object
<5> Arrays are objects.
<8> so: Employee people = in.readObject();
<5> That won't compile.
<5> readObject returns an Object reference.
<8> Employee people[] = (Employee) in.readObject();
<5> If you think it will be an Employee, you have to tell the compiler that by casting..
<5> Nearly.
<5> Employee people[] is a bad way of writing it.
<8> Employee people = (Employee) in.readObject();
<5> You have a variable called people, of type "array of Employee".
<5> So Employee[] people.



<8> ooo
<8> Employee[] people = (Employee[]) in.readObject();
<9> dam intenret sorry
<9> Employee[] people = (Employee[]) in.readObject();
<10> okay, does that work?
<9> great thanx
<9> one more quesiton
<9> the source array as to be a mixture of employee and its a inherited boss
<9> (so employee, boss extends employee)
<9> how do i tell the diffrernce between the two?
<9> if the array is employee (or is there a better way)
<5> The stupid answer is 'instanceof'.
<5> The less stupid answer is 'visitor'.
<10> Since the boss is a child of Employee, you dont need to tell the difference
<9> tybalt: but i need to know to be able to run a method only boss has
<10> What are the requirements of the program
<9> tybalt: tat was a really stupid quesiton ... i got it now thanks
<5> DarkDrgn2k2: One option is to have an isBoss() method, and have Boss' implementation of that return true, and have an asBoss() method, and have Boss' implementation return itself, as a Boss.
<5> And Employee's implementation throw an exception, return null, or whatever your favourite idiom is.
<9> (people[a] instanceof Boss) <- good enough for this scenario.. wonder why i didnt think of it myself
<9> need coffee
<10> I need lunch
<10> and pure cafene on an IV
<5> DarkDrgn2k2: Like I said, that's the stupid answer.
<11> I want to capture the screen of my window and convert it to jpeg.. Is the cl*** Robot a good way to do it?
<5> It's a reasonable way. Robot and ImageIO.
<11> ok
<11> So Robot gets it in bmp format? Is there a way to convert it to jpeg?
<5> ImageIO.
<11> nice
<12> I am trying to create an array of Integer objects
<12> here is the line I used: Integer[] a = {3,5,6,8,15};
<12> but I keep getting errors thrown that it was expecting an Integer object and I am giving it actual Integers.
<12> err I am giving it actual ints
<12> How would I make this work possibly?
<5> fatdogs12: Use Java 1.5.
<12> crookery: what do you mean?
<12> crookery: how might I have worked it out before 1.5?
<5> That syntax is supported in Java 1.5.
<5> Use int if you mean int.
<5> int[] a={3,5,6,};
<12> ok
<12> So essentially u should really not be creating arrays of the object Integer?
<7> fatdogs12 : before 1.5 there was no autoboxing/unboxing
<7> so had to use Integer or int always explicitly
<5> fatdogs12: Only if you want Integers. Not sure why you would want Integers.
<7> fatdogs12 : you can have either, but you mixed them in your syntax above : Interger and 3 (wich is an int)
<7> hi smsie
<13> heya kmh :)
<12> crookery - Originally I wanted Integers because I was thinking (incorrectly) that that was the only way I was going to be able to get get the array length
<12> crookery - noob error
<5> Indeed.
<7> what has the array length got to do with any of this ? now you lost me completely :)
<5> kmh: Don't worry, like he said, noob error.
<14> hi...can someone please give me an example of a paint() method in a Canvas() ?
<5> M0stH4t3D: In this millenium, we are using paintComponent on a JPanel.
<5> Google Java painting tutorial
<14> :)
<14> tkx
<14> i will look into it
<7> hey lerataser
<15> hello lightyears
<15> Oh wait 0.00000000000000000001 lightyears kmh
<15> :D
<16> hi,,well im new whit java reports, in the tutorial online, tells that i must put the file name, like this
<16> String fileName="C:\\proyecto\\Reporte1.jasper";
<16>
<16> but when i create the java report, i create whit the extecion Reporte1.xml
<16> hi
<16> is there in?


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#linux
#chatzone
#linux
#php
transfer lvm volume to new disk
#linuxhelp
#teens
#chatzone
#linux
date format yyymmdd linux



Home  |  disclaimer  |  contact  |  submit quotes