| |
| |
| |
|
Page: 1 2 3
Comments:
<0> szabi1234567: probably the easiest for you would be some javascript to see a paramater for the applet? <1> :-) <1> I think not <2> hmm, best option I see is the java.applet package. <0> which only has one cl*** <2> and a few interfaces. <2> afaik it has some methods to get the context of the applet. <0> Lion-O: Yes, which for this purpose are essentially useless... <0> the applet context does not contain the base URL of the applet <1> somewhere I have <2> ah. here we go: getDocumentBase(). <2> Gets the URL of the document in which the applet is embedded. For example, suppose an applet is contained within the document.... etc. <2> java.applet.AppletStub <1> I can load the config file by: URL urlConfig = new URL(codeBase + "config/config.properties"); <1> And : String codeBase = customizationTool_Applet.getCodeBase().toString(); <0> ooh, interesting. I never knew that was there
<0> so a bit of String manipulation to remove the filename portion of the URL and you're done <2> so when you have that at your disposal it becomes rather easy to get the directory part. <2> yeah, string manipulation or you create a File() object which has a few native methods for this. <0> actually, you can use URL methods to get it... <1> so if I have the codebase ex: urlConfig.toExternalForm() = http://localhost/matheszabi.extra.hu/my_projects/java/eggEngraving/config/config.properties <2> aaah, cool <1> how can I get the list of http://localhost/matheszabi.extra.hu/my_projects/java/eggEngraving/ <1> ? <1> (from the applet) <2> aaah.. getPath() and such.. Yeah, I always allow myself to become confused with the URL() cl*** since it has a lot more options :) <1> ? <0> szabi1234567: you can't reliably. The webserver has to support it...and if an index.html exists in that directory, any webserver I can think of will reutn that instad <2> ayups <3> hmm, i think you scared him <2> lol <3> wh***up Lion-O? <2> MbGone: nothing too much.. messing about, waiting to be fed and wondering if I should start putting the code snipplets which I wrote last night together in my EJB :) <2> MbGone: you? <3> i am doing ok, enjoying the last hours of the weekend <2> aaaw, last hours already? its saturday evening over here. Do you have work at sundays or do you live in a whole different timezone? ;) <3> i live in israel, so saturday is our day off <2> aaah, gotcha <3> which application server are you using? <2> MbGone: Gl***fish; PE9. I used to have the earlier Sun App. server enterprise 8.x around (from the Java Enterprise System) but eventually moved to the EE "default". <3> we are using jboss, its great (dont believe you moved ditched a sun product, its not like you :) <3> -moved <2> hehehe. Well, I use what best suits me and so far I really fancy gl***fish. I've played with jboss in the past and I have to agree that its quite extensive, even though I never dived into it that deep. <2> Well, that settles it. This evening I'm going to check out the access manager features and see if I can make some use of portlets. <3> have fun:) <4> Any knows third party package for handling ip packets? <2> smsr_: I don't think thats possible with Java. <2> smsr_: individual ip packets exist on a whole different network layer. <4> I know that <2> smsr_: don't msg me, keep it in the channel please. <4> There was a packet capture I found on sf.net <4> I shall do so, but you know what I mean? <2> no I don't. <4> Your behaviour from yesterday on that channel I said in private <4> Maybe I'm wrong, so I asked! <2> smsr_: you obviously mean your own behaviour with regards to total disrespect for the rules of that channel. Alas, this isn't the place for that nonsense. <3> smsr_ - there is a package which is called jpcap, which is based on libpcap, but as far as i recall its using native code <5> hi, im trying to have an array of JButtons displayed in a JTable. yet, instead of the actual button, it displays javax.swing.JButton[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.5, ... ,defaultCapable=true] <4> MbGone: I know <4> But with that you can't create custom ip packets! <2> MbGone: otherwise its not possible. <3> smsr_ - why do you need to create custom ip packets anyway? <4> Lion-0: Agree. But you said some bad words, thats why I asked. <4> MbGone: There are a lot of programs in witch I would need that: for example building a small firewall and so on.. <2> CZR: What kind of array? Sounds like you made a mistake somewhere and are using some refer instead of the actual object. <2> smsr_: Thats not a job for Java. <5> ill pastebin all code relating to that array <4> Of course is not. But you said to not PM. <2> smsr_: did you happen to notice the name of this channel lately? Its about Java. <4> And java is what I am discussing <2> smsr_: Starts to look more like trolling to me. <3> smsr_ - if you know its not a job for java, then why are you asking exactly <3> ? <4> Because Lion-0 is freaked about Pm <3> heh <2> He got kicked from #linux yesterday for excessively annoying behaviour and trolling. Guess he now wishes to take it to other channels.
<6> evening <2> Hoi Rob <6> hoi <3> hmm, i was just informed to its possible to download the new episodes of 24 a day before it primears :) <3> hi Rob_uknow <5> http://rafb.net/p/QSAgJG33.html - here the code relating to the JButtons.... i hope i didnt miss anything <2> errr, that looks weird. <5> its just parts of the entire code <2> why not use imports? <6> he probably uses a gui editor <2> this really looks plain out chaotic <2> well, to me at least. <5> indeed Rob <2> doh <2> so its useless to look at the code. <5> ill try to reformat it <2> and this just makes no sense what so ever: "tableContents[i][5] = editButton[i];", where tableContents is nowhere to be found and editButton is supposed to be an array. But just before that: "editButton = new javax.swing.JButton[display.length];". Is it an array or isn't it? <2> if you wish to display a button in a table then you don't ***ign values like that. <5> tableContents is an Object[][] <5> im trying to print one button per line <2> "print" ? <5> display <6> why use a table for that? <5> show one actual button per line <5> its not only buttons... i have 5 more columns with text etc <6> is it possible to edit text? <5> a table would be the best solution in my opinion <5> no, the text in the table wont be editable <6> then a table is rubbish <6> why not write a decent gui <6> you are using the table as a way to layout your components <6> instead of using a layoutmanager <5> im not sure how to use layout managers + im continuing the project some1 else started... he used a table... changing it would be a lot of work now <2> uuuh. <5> i just want to know how can i displayan array of JButtons in column #6 of that table... one button on each row <2> That "lot of work" will save tremendous time and stress in the future. Rob is right, granted; I don't have much experience with GUI's but I've never seen one without a layout manager. <5> it does have a layout manager i guess... it's been generated by the IDE <5> 1 sec let me check <6> the tablecontents is the tablemodel <6> its rows/cols <6> if you want to add more then one component to a cell then you need to put them on a panel <6> and add the panel to the cell <7> guys.. can u give me an Idea on how to find out where is the last line drawed in a Graphics2D ? (I need to print an Invoice, and it prints a JTable, I need to find out where I can put the Total Value part under the table...) <5> yes the tableContents array represents the rows/cols... im not trying to add more than one component to a cell, one the button <5> *one = only <6> table.getY() <6> SAnDAnGE, why not use a report tool? <6> to generate the invoice printout <7> I don't have one, and so far google gave me ones that are not free <3> SAnDAnGE - jasper <6> bird is free, jasper is free <6> think there even is a free crystal reports for java <3> it even has an editor which is called ireport if i am not mistaken <6> there are also free wysiwyg editors for jasper <7> thanks guys, I'll look into them <6> if you use jtable why not add the total value part to it as well? <6> or add a lable underneed it and print the parent container <6> underneath <8> yes the tableContents array represents the rows/cols... im not trying to add more than one component to a cell, only one button pet cell <6> crystal reports for eclipse is free <6> I just checked it <8> thanks for the help... ill try to figure it out on my own <7> can a JTable contain JButton inside a cell ? <6> yes <9> http://www.google.com/search?hl=en&q=jbutton+in+jtable&btnG=Google+Search <9> rob, everyone. <3> hi Clackwell <6> Clackwell <7> hi Clackwell <10> rob sir! <6> wolfey <6> its slow today
Return to
#java or Go to some related
logs:
#linuxhelp #php csservice undernet roadtrucks #linux #AllNiteCafe #chatzone kull hadd #skype #linux
|
|