@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<juco> Hey, what's the best way to decipher which element in your JTable you currently have selected? Also what would I need to implement right click functionality to my JTable?
<koala_man> juco: http://java.sun.com/docs/books/tutorial/uiswing/events/listselectionlistener.html perhaps
<lookingforward> NeverTooLate If US emb***y or Us consulate of Pakistan is giving answer or arresting thier own employees or CIA's or FBI's then say to me NeverTooLate
<lookingforward> else I know I am muslim. you are welcome to my home. I from Al-Qaida.
<lookingforward> :)
<bear_kl_m> mana org
<bear_kl_m> ppppppppppppppppppppppppppppppppppppppppppppppppppppppppp la
<aspdo> hey everyone anyone interestd in a lap top for 400 dollars or desktop for 400 dollars or playsation 3 with 3 games and 2 controllers for 400 dollars? message me on aim at mrsolstice1981 or msn at mrsolstice1981
<koala_man> aspdo: ebay.com
<koala_man> oh, ad this:
<cics> hello anybody here know a channel about cobol???
<koala_man> haha
<cics> hello anybody here know a channel about cobol???
<chaoticJava> anyone good at design?
<Cancel> what kind of design?
<chaoticJava> simple design. i wanna build a Table of Contents cl*** that implements a given yet usual TOC interface. it has a title, authors instance vars. it has one or more subject headings. a Subject headings has a heading and one or more Topics. a Topic has a Title and number of pages.
<chaoticJava> i wanna know the best way to implement the design for that.
<chaoticJava> ie what has what arrays..abstraction inheritance.. how could I go about building that efficiently?
<Cancel> I just started java so haven't had to use dictionaries/hashes but anyother language I'd have a dictionary
<chaoticJava> ah ic.
<Cancel> key/value pairs
<Cancel> so each instance have a dictionary of those things maybe
<chaoticJava> maybe for Topic would be a dictionary value.. key would be the title and value would be the number of pages.
<TruthLiker> Greetings :)
<TruthLiker> I downloaded a java app for linux a .bin install file. It installed but when I run the start script it gives me an error.
<TruthLiker> Would someone look at the error and tell me what is wrong ?
<TruthLiker> Not ?
<TruthLiker> :|
<TruthLiker> :)
<TruthLiker> May I past the error to the window ?
<TruthLiker> channel window.
<TruthLiker> Microsoft.
<acidjnk> hello
<NickaNicka> lo
<ei_01|isBack> aloww
<NickaNicka> why does topic say "Microsoft support"?
<juco> Hey folks. What's the best way to tell if there's letters found in a string?
<koala_man> String.indexOf or String.matches
<juco> thanks :)
<juco> koala_man, i've attempted to write a script to check for the existence of machine's on the network here: http://pastebin.ca/316238 - Is this the best way to be doing it? if i'm to send a string of random numbers, the program just hangs, is there anyway around this?
<juco> I know I should probably be working with InetAddress's as well
<koala_man> what's going to listen on port 8081?
<juco> a ServerSocket
<juco> sorry, should've made that clear. Yeh, i'm trying to design some sort of network tool. That builds a list of machines and their status.
<koala_man> it's not a horrible way of doing it at least, but it does check if the java server app is running more than the server itself
<juco> yeh, that's fine. Ever machine I would want to respond will be running an APP on it's end with a ServerSocket listening. But yeh, as I say, if i'm to type a made up IP or a bunch of random numbers, the program just hangs. If i'm to p*** letters, then response is set to 'Down'
<juco> excuse the typo's, it's early :P
<juco> when it hangs it also doesn't through the exception, as I don't get the 'control socket failed' error
<koala_man> does it hang forever or just for like a minute or so?
<juco> umm, haven't actually tested to be honest. let me try
<juco> I mean, I guess ideally I should be using threads, and have it check in the background. But that's above my level at the moment
<koala_man> ideally you should be using NIO
<koala_man> select()-style if you're familiar
<koala_man> non-blocking io
<juco> Can't say I am. Will look into it
<juco> humm, ok.. It hangs for about 2 minutes then I get the exception and 'control socket failed' printed. But the program still hangs
<juco> well, I guess more so the GUI hangs. And the only way to exit it, is to ctrl+c
<koala_man> if the gui hangs and refuses to repaint it means you're blocking the event handler
<juco> oh. I mean, I don't actually have any sort of repaint feature going on. The event called when the 'add' button is clicked literally just adds the String to a JTable (regardless), and then calls this control cl***
<koala_man> does this happen in an actionPerformed method or similar?
<juco> yes, exactly that. I can post up the code for it if you like?
<koala_man> the gui will only update itself when the actionPerformed ends. until then, it will hang
<koala_man> so if yours takes two minutes to end..
<juco> oh right, I see
<juco> Ah, I think I know what'd doing it then. I call this control cl***, I then call a cl*** to attempt to retrieve details on the server. If the server's not up, it wont retrieve these details.
<juco> i'll go try condition the check for details :)
<koala_man> if you're going to do something that can take longer than half a second you should have a separate thread for it
<koala_man> otherwise the gui will seem sluggish
<juco> right
<acidjnk> koala_man, many Linux users report a hanging at 99 % for very large amounts of input (e. g. many small files or one big file with a total size of several GB). I have no idea how to debug that, so if you notice anything ...
<koala_man> hanging of what?
<acidjnk> The progress bar in TigerCrypt.
<acidjnk> It seems like the last few bytes in the target file are missing in that case, so it probably is in hanging in the loop in FileManagerImpl line 86.
<koala_man> what if j > stepsBetweenEtc
<koala_man> or ==
<koala_man> oh never mind
<acidjnk> Someone now encrypted, it hang, then decrypted it again, and stragely the original and the decrypted one are identical. the encrypted one has exactly the same size as the original one - strange. That's what has been reported to me.
<acidjnk> bbl
<acidjnk> Maybe I just made a beginner mistake with the EDT.
<larissa> Your Queen is Back
<NickaNicka> our Queen?
<Two-Bits> NickaNicka: do you really want to question a delusional and psychotic female?
<NickaNicka> oh
<NickaNicka> not really
<NickaNicka> sorry
<Two-Bits> wise choice
<juco> What's the best and easiest way to signify certain rows, i.e. a way to colour the font of a row green/red, or a checkbox checked/unchecked?
<koala_man> in a table?
<juco> sorry yes, a JTable
<koala_man> I'd say both change the background of some field and add a checkbox
<koala_man> that way you have have an immediate visual clue plus a way for the colour blind to use it
<juco> How would I do either?
<koala_man> a custom cell renderer
<juco> know of any example?
<koala_man> http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer
<koala_man> there's an example for the checkbox too further up on the page
<koala_man> google also mentions http://forum.java.sun.com/thread.jspa?forumID=57&threadID=437669 which I suppose does pretty much what you want
<juco> thanks
<TREND> aloo semua
<TREND> haloo
<Zerone> hi
<Zerone> hey i want to avoid that the mouse cursor is going out of a specific area if a mouse button has been pushed. in this case i get the mouse events and prove the area and bring the mouse cursor back to the valid area if it goes outside (using Robot). This causes sometimes "flickering" of the cursor. Anybody has a better idea?
<junkpan> anyone know anything about IAdapterFactory in eclipse?
<Zerone> nope
<Zerone> btw. nobody is talking here :P
<Elbonzi> How do you include a cl*** ?
<Elbonzi> thats already made
<Zerone> what do you mean Elbonzi?
<Zerone> how to import a package? :P
<Elbonzi> yeah
<Elbonzi> im trying to use the GCD cl***


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#java
wireless yükseltici
#india
#india
#allnitecafe
#netcafe
#php
#chat-world
kasam se haan
The server must be started under the locale



Home  |  disclaimer  |  contact  |  submit quotes