| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> what driver are you using? <0> try to build a simple cl*** and connect to mysql using that driver.. <1> jdbc driver <2> Has anyone here ever embedded the JVM inside some C++ code? <3> erm... embedded it? <3> You don't embed the JVM <4> I've implemented my own Component with overridden paint(Graphics g) and update(Graphics g) that just paint an image to g. Now I try to add it to the BorderLayout.CENTER of my applet. But I still get heavy flickering (due to something that looks like the component painting its background before calling paint(Graphics g)) <4> shouldn't the component just do what is said in paint(...) and update(...) when i call repaint on it? (or its parent) <4> and = and/or <5> you need double buffering ted__ <5> I don't know if it's available using AWT <4> I thought that was double buffering... I'm updating the buffered image and then paint it in paint(...) and update(...) <5> using buffered image != having double-buffered drawing <5> it's just a cl*** name <4> ?? <5> ?
<4> but still the flickering should not appair if I paint the same image in paint(...) or update(...) but it does. <4> right? <5> wrong, it still happens <4> why? <5> don't ask me why, it just does :) <4> that has to do with something java is doing that I don't know of.. <5> you just won't get smooth animation w/o double-buffering, period, using java or most(all?) other environments <6> anyone where i can find a script that will automatically close the browser without asking yes or no? <2> Yeah, embedded it. <5> better ask on some javascript channel <2> As in, JNI and the invocation API. <4> I am drawing to an offscreen image and then draw it to the screen. that is the basic principle of double buffering.. now, If I still get flickering when doing that, something is painting outside of my controll.. <2> Anyway, I think I figured out my problem already. <4> anyone here that know why my component with overloaded paint() and update() methods still gets painted on by something else in my java applet? <3> dwork: erm... <5> ted__: you're right, that something is AWT and you need window-level double buffering to avoid flickering <5> that's all I can explain to you, I don't know AWT/Swing internals enough to explain precisely why, but experience says what I wrote before <2> It's working, but for some stupid reason the embeddable JVM calls directly exit() whenver java code tells it to, breaking out of MY code. <4> gilead, ok. I think it looks like the component is filled with the background color and then my paint methods are invoked.. If I just could turn of that background filling.. well I will have to read up some on swing/awt etc. <3> dwork: then install a security manager <2> Nothing to do with that, I'm just supposed to tell the JVM to use a different exit hook. Now I only have to figure out how it expects it to be. <4> hmm. for some odd reason the whole thing works if I put all my content in a JPanel and then add that JPanel to my applets Container. <4> so the applet Container treats its children differently than the JPanel when it comes to drawing. <1> hello ... i still cant create the scarab db using ant ... i get the following error: java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null <1> the jdbc driver works fine <1> pls help me! <1> i cant use trackit <1> only scarab <7> hello everyone... <7> anyone knows any good tested highly available/reliable JMS provider? <7> also let me know best suited application server with it... <3> erm, activemq is okay, openjms isn't horrible <3> I ***ume you're desperately trying to avoid the real MOM systems <8> Sombody can Clone this site & Games ?? http://doizece.neogen.ro i need the Games. <3> go away, KYLLER`NL <8> jottinger i dont ask nathing for you ....can you do somthing to my .... <8> what you say ? <9> KYLLER`NL: TheBest, bugger off. <1> hello ... i still cant create the scarab db using ant ... i get the following error: java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null <1> pls help me! <10> Quesion: is it possible to sort a HashSet so that the objects within it are in a certain order? <9> No, a Set doesn't have a concept of order. <9> Try a SortedSet, such as a TreeSet. <10> ok thanks <11> i want a question answer for trivia .how do i get this? <12> can u terminate a process in java, created by the runtime cl***? <13> my brain has complete frozen.....if i use something like java -cp /home/folder/something.jar:/home/folder/somethingelse.jar app <13> then what does that make the root of my cl***path? <13> or for example if the second folder is in a completely different path e.g /usr/lib/something.jar <9> There are two roots of your cl***path, something.jar and somethingelse.jar <13> cheers mate <14> Java JDBC question. Is there any safe way to build a query/insert/update which protects the statement from bad user data (such as wildcards, quotes, etc)? <13> use a regex to remove them? <15> true, but I was wondering if there were any nice methods to generate the SQL, doing whatever is proper to escape data fields <15> Did not want to reinvent the wheel for something maybe already provided <10> Question: When using a TreeSet how do I get the first record. It seems to me all I can do is set up an iterator of the TreeSet and then call it.next() to get the next element. The only problem though is if the TreeSet has 10 elements, When I build an array of objects using the it.next() function, the final array only has 9 elements <13> you sure? <13> keeping in mind the final array is indexed from 0? <10> well it tells me the size of the array is 9 when i do a trace
<15> whenever I use iterators, the first next is the first element, though that does come mainly from xml Document iterators.. <13> aye thats normally the case. Have you tried outputting the elements or something similar? <13> what does treeset.size() tell you? <10> Question: When adding objects into a TreeSet, what defines their order after added? As I build the TreeSet it seems that the order changes so that certain objects go on teh left of the main element and certain objects go on the right <16> think about the definition of a set <10> what about it? it seems to me like theyre being ordered by a the value of 'order_num'... would it be more appropriate to build a linked list rather than a tree? <16> you're missing the point <10> explain please <16> a set has no concept of order <10> i thought treesets did <16> so if you iterate a set, don't expecct any particular order <16> I could be wrong <16> but then it wouldn't really be a set <16> so it would be a sort of misnomer to call it a tree set <10> gotcha. so what i am looking for is a list not a set? <16> well, you want a particular order? <10> something that will maintain order as i add things into it <10> yeah <16> a List would work then, yeah <10> ok thanks. ill trty that and see what kind of results ill get <10> now im looking at the java api for list. can it only hold String objects? <16> ehm, no <10> haha nevermind <10> wrong List object <10> next one down holds objects <16> like say List<Foo> = new LinkedList<Foo>(); // a linked list of Foo references <16> er <16> well you might want to give it a name too <16> but you get the idea <10> ok thanks <8> [19:16:38] <Consta101> dami si mie acc pe rahova pls 100 <8> [19:16:42] <8> daca iti dai 2-3 Ciokane in mana cu are ai Tastat. <8> care mai vrei ba acces ? <8> ups :) <16> ??? nu sunt o vaca! <17> hi <18> hi <17> If I add a WindowListener to a JDialog and implement windowClosed(), windowClosed() appears to get called twice. Does anyone know why that is? <18> try public void setDefaultCloseOperation(int operation) <18> WindowConstants.DO_NOTHING_ON_CLOSE <17> Rob_uknow Actually, this is a cl*** thats external to the Dialog. I want to know when its closed so that I can do other stuff <18> then you can handle the close event yourself <17> Rob_uknow I'm trying to detect whether the Dialog closed from outside the Dialog <18> yes? <18> and where is the problem? <18> you tell the dialog to do nothing on close <18> then add a windowListener to the dialog <18> and listen untill the close event arises <18> then dispose the dialog or close your application <17> Rob_uknow http://rafb.net/paste/results/Zvg7mR37.html <18> try windowClosing instead <18> public void windowClosing(WindowEvent e) { .. } <17> Rob_uknow windowClosing doesn't get called. I modified it so that you can see how ConfigurationDialog closes, http://rafb.net/paste/results/32asI378.html <19> homeo: consider providing a test case (avoids having to guess what you are *really* doing): http://javafaq.mine.nu/lookup?22 Also provide any error messages that you might be getting. typically paste to http://pastebin.com <19> rob <18> Clackwell <19> i would also try querying the windowevent for extra information to what (if anything) differs. but prior to that i'd need to verify the windowClosed() being called twice bit. <18> I only get the closed message on time <19> Rob_uknow: you mean you wrote and tested a test case faster than he could provide one? stop embar***ing our guests. <18> yes <18> http://rafb.net/paste/results/5gWlgT35.html <19> http://www.i-mockery.com/minimocks/valentines06/ <18> aha <17> hmm <20> can having a large transaction hang a session (jdbc to oracle)? <18> yes <18> for sure <18> check for deadlocks <20> k <20> does that have to do with the rollback segment size? <19> oh, oh <21> Clackwell: We have both sql gurus and no shortage of chaos ;)
Return to
#java or Go to some related
logs:
#linux #AllNiteCafe #slice netbeans source folder another project emule-linspire ubuntu fxmedia #linux #linux #linux #javascript
|
|