@# Quotes DB     useful, funny, interesting





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



Comments:

<0> :)
<1> I tried to disable my virusscanner but that didn't help
<0> Rob_uknow: just one question... how much 'lag' did you see?
<1> none
<2> Rob_uknow: upgrade 128mb ram to 1gb :D
<0> i measure time from when you send move until you get move confirmed
<0> socket.setTcpNoWait(true) helped too ;)
<1> ok
<1> znabela, I have 512 mb ram
<1> its a recent problem
<0> Rob_uknow: scan for spyware
<0> spyware is CPU hog
<2> www.microsoft.com/defender
<1> nah, the cpu usage doesn't go up when I select a file
<1> I just see the hour gl***
<1> and I need to wait 4 seconds before I can open the file



<1> or right click on it to see the context menu
<0> Rob_uknow: when i boot into xp i am horrified by slowness
<0> all takes so damn long
<1> wolfey, thats normal behaviour
<0> not on my linux:)
<1> after logging it it takes a while to respond fine
<2> Rob_uknow: CCleaner (remember to disable cleaning of cookies if you got a lot of login to sites stored in cookies)
<3> odd
<4> i am trying to use getText() on a JTextField, but i keep getting null. what can be the problem?
<5> saikick: What is a test case? Why would you write one? See http://javafaq.mine.nu/lookup?22 (to see what you are *really* doing) Paste test case and any error messages to http://papernapkin.org/pastebin or another pastebin
<4> i use something like this: String data = txtFld.getText();
<5> no clue what is causing the problem, that is why i need to look at a test case to tell, possibly even to play with it.
<6> you could even be facing an empty textfield.
<4> it's not empty.
<6> saikick: how can you be sure?
<4> there are letters and stuff in it.
<6> but also at the exact time when your command is being performed? the results contradict this.
<5> saikick: What is a test case? Why would you write one? See http://javafaq.mine.nu/lookup?22 (to see what you are *really* doing) Paste test case and any error messages to http://papernapkin.org/pastebin or another pastebin
<5> <nod>
<7> hehe, no insults? What a peaceful guy? ;)
<5> "omg, omg!!!oneoneone they want me to write a test case <shiver, shudder>"
<6> the only reason I suspect something like that is because the JDK docs explicitly tell you to use a DocumentListener if you wish to keep an eye open for changes.
<6> and yeah, I got a whole directory full of those. Sometimes those routines can be very helpfull too.
<6> ok... "JTextField txt = new JTextField("This is my textfield."); String data = txt.getText(); System.out.println("JTextfield contains: " + data);". Naturally in a nice cl*** with javax.swing.JTextField being imported. It just works(tm).
<3> does someone have code to add a copy/paste menu to a jtextarea?
<6> hmm, never played with that yet.
<3> there are code scriplets on the web
<3> but I rather have something more refined
<8> shouldn't be too hard I wouldn't have thought
<3> think I might have found something
<6> Rob_Uknow: are you referring to a right mouseclick and a pop-up menu ?
<8> ^C and ^V work in a JTextArea IIRC
<3> yes
<3> our users aren't smart enough to know ctrl+c and ctrl+v
<8> hmm, I would guess that you'd need to subcl*** JTextArea, add a mouselistener for right click and go from there. A Big Bat of Doom to educate users would be easier though :)
<8> the methods to do it are already there, you just need a context menu (JPopupMenu) to call them
<3> I found this example http://www.javalobby.org/java/forums/t19867.html
<3> it really isn't that trivial
<8> that looks overly abstracted, but basically that's the idea, yes
<8> you can hide it all away somewhere so you don't have to care about it
<8> stick it all in a MyJTextArea cl***, and then forget about it
<8> http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/PopupMenuDemo.java
<8> that seems overly abstracted to me as well
<8> surely you should be able to make it smaller/simpler than that
<3> its a good solution
<9> hey guys, I want to create a "search" functionality, to search through items in the database (they have a text field). Would you recommend just using SQL's LIKE to build this?
<0> yes.. LIKE would be it
<9> seems almost too simple
<0> if you want all keywoardsd... "LIKE %key1% AND LIKE %key2%" ... OR for any.
<0> i guess
<9> hmm, yeah
<3> you might want to enable full text search
<9> what does full text search mean?
<3> full text search
<3> just what it says
<3> its a feature of the RDBM to index the contents of a textfield
<3> to provide fast indexed search
<10> where in API Specification can I find update() method?
<5> MatrixEVT: 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
<10> thankd



<10> s
<5> np
<10> I am to use repaint() and update() in http://fatcat.ftj.agh.edu.pl/~kfsz/rc.java to clear the screen before each drawing and I don't know which to choose from index?
<5> consider formatting your code properly.
<5> MatrixEVT: what happens if you do not "clear the screen"? does it "work"?
<5> +anyway
<10> it works but I have to do one with clrearing and another that's without
<10> using checkbox
<5> MatrixEVT: so does the one that you posted automagically "clear the screen"?
<10> you, know I typed the code on base of one example, just to draw it
<10> and now I want to adjust it
<5> so it already does the "clearing of the screen"?
<10> right, but I would like to make the checkbox that allow you to clear or not
<5> MatrixEVT: one thing after the other. so your code automagically DOES "clear the screen".
<5> that means you do not have to look for a method to do it explicitly.
<10> How am I to rearrange my code in order not to clear it atomagically ;) ?
<5> aha, good question :)
<10> does it require a lot of work?
<5> MatrixEVT: maybe reading up on double buffering hints at a way of doing it: DOUBLEBUFFERING Doublebuffering explained at http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html and http://java.sun.com/docs/books/tutorial/extra/fullscreen/doublebuf.html An example can be found at http://java.sun.com/docs/books/faq/src/draw/OffscreenImageExample.html
<10> thanks
<5> np
<5> hi cal
<11> hi
<10> is that cleaning contained with refreshing?
<5> MatrixEVT: have a graphics or image or so object. draw on that whenever you draw something. in paint(Graphics g), paint that thing onto the g object.
<10> ok
<10> thanks
<5> MatrixEVT: you need to find out what you can draw on a Graphics object, to use a create separate instance of that to drawn on and to have it drawn in paint().
<5> for that you need to study the api docs.
<5> that's just a general idea, may or may not be doable in java. the doublebuffering articles should basically do exactly that, i'd think.
<10> :)
<12> hi all, what is best java programming environment (IDE) you can recommend for beginner?
<3> jcreator
<12> k, thx, any other suggestion?
<0> freemand: BlueJ
<6> jcreator2 :)
<0> BlueJ is used as teaching tool now
<5> anything that is simple and doesn't hide stuff from you, freemand.
<0> also does UML on the fly
<3> eclipse is nice
<0> netbeans is nice
<5> freemand: best is an editor which lets you execute the commands to compile and run java applications yourself.
<3> but not for beginners
<12> yeah, i neew as simple as delphi/vb ide, i can write code/execute/debug in one tools
<12> -w +d
<12> need
<11> in java symbolic debug is over rated, on the whole use good OO and System.out.println(...
<11> do you have a decent text editor already?
<0> i write system.out way faster
<3> does uses the debugger
<12> yeah, but if source editor separated from compiler, not my favour
<11> why not
<12> i need source editor which can tell me which line that goes wrong
<11> do you already know how to write on the command line?
<12> just like php
<11> the compiler does that
<11> freemand you have to learn the cmd line, if not you won't be able to fix many compile errors
<6> this sounds like the 'try on error' approach (letting the ide do the "thinking") which I don't think is going to get you very far.
<11> textpad will integrate the command line tools as will JCreator, but YOU MUST LEARN THE COMMAND LINE
<12> ok, what the next tutorial on the net which i should read then?
<11> www.thejavatutorial.com
<12> i've got new project with java, i used delphi much
<11> and find Thinking in Java
<12> k, thx
<3> start from the beginning
<11> commercial project or college ?
<3> if you're smart you can be productive in 2 weeks time
<12> commercial of course
<12> :)
<11> ROFL
<11> another cowboy
<6> calchas: you just had to ask...
<6> :P


Name:

Comments:

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






Return to #java
or
Go to some related logs:

caut un sclav
wget pokerroom
smole bitches
#linuxhelp
#linux
password for allpspgames
kernel panic not syncing snmpd
#skype
gallery2 remove longdesc
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes