| |
| |
| |
|
Page: 1 2 3
Comments:
<0> hello <0> i need help in java programming.. i am trying to make a client-server architecture and i have problems with the transfer of active content(from keylistener) from client to server. i use tcp java sockets. can anyone help me? <1> hmmmm <1> you might take a jook at jsdt <1> it is not developed any further currently, but it provides you nice client-server communication in a 1.1 event handling style (Listeners) <0> ok thanks kmh! :) <2> Hey guys...does anyone know how to iterate a hashmap like one would a list in JSTL? So far, I've got: <c:forEach var="profile" items="${searchResults.values}"><c:out value='$profile.username}'/></c:forEach> but is not working because I want to ignore the key and just print the values...any suggestions? <2> I guess I could just store the Map as a collection of values in the request...probally will do that for now <3> I have a recursively-defined structure -- for simplicity, let's say interface Expr is implemented by MulExpr and AddExpr and Constant, and each of MulExpr and AddExpr contains subcomponents of type Expr. One instance might look like Expr x = new MulExpr(new Constant(2), new AddExpr(new Constant(3), new MulExpr(new Constant(4), new Constant(5)))). <3> A number of tools need to be able to do something with the structure, without having access to the private components; e.g., one tool will want to be able to turn x into the string representation "(mul 2 (add 3 (mul 4 5)))", another will want to generate the string "2*(3+4*5)", and another will want to evaluate it to get the integer result 46. <3> (First question is, what's a good generic name for tools that can do this? My partner came up with a word when she first wrote it, but it's not really all that appropriate, and I thought I'd solicit other opinions before stating my own.) <3> I think I also had a question about an implementation detail, but now it's slipped my mind, so I'll have to think about it again. <4> hy guys <4> I have a question about JTable <4> How can I append a alement at the end of a Jtable ? <4> I can add it to the Object[][] but how to refresh the Jtable ?
<5> repaint <6> this must be the most asked question ever, the repain/refresh question <4> But I put those in a panel! <4> I have a serve witch deals with clients and must dinamically when they connect to add them to a jtable.. <4> Sorry for being noob but if I don't use Graphics and I don;t ever call paint on what should I repaint ? <6> the jtable <4> But there is not repaint(Conponent), only repaint(int x...) <4> http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html#repaint() <5> Deano: you know how to install mysql? <6> yes thanks <7> oh my <6> jTable.repaint(); works I dont know what your problem is. <7> who doesn't know how to install mysql? It's click-and-run <6> they supply an executable installer. <6> exactly <7> it's sort of like a trap <7> "We'll make this piece of crap so easy to run that even morons can run it!" <6> and then they fail anyway <4> I have a big sql server..you can ask me <6> what is there to ask?! <8> hi all <9> Deano: simple; how big. Like 'my sql is bigger than yours' ;-) <8> does anybody know hot to rename a cl*** on runtime? I mean i have a cl*** org.mypkg.Cl***1 but i want the cl*** org.mypkg.Cl***2 to bea loaded. I wonder if there is a runtime parameter to the vm ? <9> yugowas: euh? You have a cl***1 and want cl***2 to be loaded? Thats not renaming, it has to load cl***1 to be told to load cl***2 ;) <8> yes but i was thinking that there is a parame such as -DCl***1=Cl***2 <6> heh, u know thats not true :P <9> yugowas: that makes no sense, and what Deano said. <8> why it makes no sense ? <9> you can set a cl***path or, raising the coolness factor, write a nice Cl***loader to the the trick. <6> Lion-O: I was referring to your last sentence directed at me, but it makes equal sense to his response too! <9> do <8> i wanted to avoid writting a cl***loader <8> so i thought maybe there is already something that is doing it <9> Deano: hehe ;-) <9> yugowas: it depends on what you're trying to do, without that info its impossible to tell. <8> i only want that when a code is attempting to use Cl***1 that instead Cl***2 is loaded <8> or to hava a package "renaming" on runtime <9> Simple.. cl***1: public static void main(args....) { Cl***2 test = new cl***2(); test.go(); }. End of problem :P <9> your friendly neighborhood Java garbageman will do the rest ;) <8> yes very funny, thank you anyway ;) <8> infact, the esb servicemix has a component that is using drools 2 and in drools3 (jboss rules) the cl*** is in another package <8> the servicemix component is reffering to that cl*** in the source code ... so if i change to use drools 3, then there is NoCl***Def ... do you see ? <8> so it is cl*** loading or package renaming problem .. <9> I think you're looking for the wrong solution to your problems. <8> but what should i do ? <8> write a new cl***loader? <9> Its pretty trivial to load cl***es which reside in other packages. If is posses a problem for you you should be checking up on the Java tutorial again. <4> I have a program who needs to copy himself to another location..Is there a way to get a handle to 'myself' ? <8> Lion-O it does not seem trivial to me right now, if you have the tutorial that explains how to solve the problem would you mind to send me the url ? <4> Or how do i get a File f = new File("myname.jar"); myname.jar can be anything..Any help please!! <9> yugowas: the basic java tutorial on http://java.sun.com/docs/books/tutorial/ <9> usu2: I think you have 2 options; setup a FileReader and Writer and perform a manual copy or simply use whatever the OS provides for this (execute a system command using the runtime cl***). <8> hehe you are very funny Lion-O ;) <9> yugowas: I'm serious. <4> execute("cmd /c dir"); <9> yugowas: What do you think happens when you're using a statement like "Date test = new Date()" ? Date happens to be located in a totally different package (java.util). <4> will only show me all files in current dir <4> but not myself <4> Bufferedreader br = new BR(new Filereader("blabla.file"); <4> there is no such a command that will get me the current handle like in C/C++ <9> usu2: define "myself" ? If you execute a jar file and then list the directory in which the file resides it will also list the jarfile itself.
<4> Lion-0: But I don't knwo what name my file will have <9> usu2: then check your current cl***name. That will also denote the filename, to some extend. <9> and you might even benefit from the runtime cl*** as well here. <4> I build the jar, I give it to other folks, they rename it and execute, and the jar should copy hiself to another location when executed... <4> So cl*** name is irrelevant <4> maybe the VM has a parameter like this somewherte ??? <9> usu2: hmm, I doubt that this approach is possible. Perhaps the cl***path will give you a hint there but I somewhat doubt it. <9> otoh <9> java.lang.Package looks interesting :P <4> That's only in 1.4 ? <5> anyone here use thunderbird? <5> how to set up a hotmail account? <10> hey guys, can someone refer me to a page which might explain the differences in computer and mobile java ? <6> java.sun.com <6> look for J2ME Java, differences will be explained somewhere <6> alternatively use the ultra new search engine you may not of heard of yet; Google. <10> thanx i actually didnt know what exactly to search for, j2me is the keyword <11> hello there <11> i have a question <11> any one can help me <12> not if you don't ask <9> is that the question? Because if it is it can't be answered :P <11> how to make an .exe in java <9> hi sabre <11> im using textpad <12> hey Lion-O <12> .exe is a window's thing...you don't wan that <9> nahjer: that won't work out of the box, you'd need a specific compiler which can attach the jvm in order to create something like this. In theory its possible, in reality you might want to re-consider using Java for that job. <11> compiler? <11> or a software? <11> meaning? <12> dude you want to make an executeable jar <11> not jar <11> but executable "*.exe" <11> like a vb <9> hence; an executable jar. <11> u can create an executable file <11> if executable jar how? <9> and I can also ***ociate .jar with java so that it executes the moment I click on it. You need a specific compiler for this, like I said above. <11> ok <11> tnx <13> hi <13> znabela are you here? <6> its best not to direct your questions at ops <13> thanks Deano <13> where you come from Deano? <6> uk. <13> I talk from Spain <6> 3-0 I see... <13> yes <13> jeje <13> but not take this as an ofensive <13> only a game <6> oh I'm from United Kingdom not the Ukraine lol <13> jajaja <13> Deano Do you know programing in java? <6> yes. <13> the visual aplications uses Swing , rigth? <6> it can do yes. <13> im trying to do visual aplications with java <13> but I cant <12> haven't seen that character before <13> encode visual aplications with java is so hard <12> because it requires thinking which 99% of the population neglects to do :) <13> xD <13> it seems imposible <13> I need a visual designer <7> heh <7> then get one <12> creating swing applications is easy man...try adding in about 20 other technologies with it or another field <13> yes <13> now Im gonna find a swing tutorial <13> thanks mans!!! <13> sabre and Deano a lot of thanks!!
Return to
#java or Go to some related
logs:
was a Bo Peep to a 19th century cockney street vendor #AllNiteCafe #networking ic cumnija ta St Lukes Hospital Malta #linux hyperthreading lsf patch #php siberian hellhole #linuxhelp #php
|
|