| |
| |
| |
|
Page: 1 2 3 4 5 6
Comments:
<0> if i want to reverse Arrays.sort() <0> what should i make it return <0> to make it inversed.. <0> u there Clackwell? <1> return? surely it'd return the same type as you p*** in <0> return o2 ? 0 : 1 <0> something like that.. <0> if("---".equals(o1) || "---".equals(o2)) return "---".equals(o2) ? 0 : 1; <0> i use that to make --- be considered "last" <1> oh, i see what you mean. just swat o1 and o2 sides <1> swap <0> yes.. but how do i write it.. <0> can u refer me to a pasting site <0> where i can paste the code for u? <1> change your line to have o2 were o1 is, and o1 where o2 is.l <0> aah..
<0> return collator.compare(o1, o2) <0> err <0> return collator.compare(o2, o1); <0> that would do the trick? =) <1> why dont you try it and see <0> it worked yay <0> thanks talios for making me see the obvious :)) <0> do u know any way to make the column names in a JTable to be clickable <0> while we are at it :P <0> also, if i have method(int i), and i use method(); would that make i null or cause error? <2> o1 and o2 **** as variable name <0> :) <0> i only use them temp.. <0> for the Array.sort() <2> also your condition is ****ed up <0> what condition? <2> if("---".equals(o1) || "---".equals(o2)) return "---".equals(o2) ? 0 : 1; <0> well it works.. <3> if u have a method with signature method(int i) then you cannot call the method without p***ing in an int, i.e. calling method() would not work. <0> ok, thanks deano.. <2> it works is not enough!!! =) <0> and, it was MXV (if im on the right network) who wrote it not me :P <0> whats ****ed up about it Zarathushtra? <2> are you still working on the same homework? <0> its not homework i told u :) <0> its strictly for learning purposes :P <2> ya ok <0> today has been good so far.. learned how to use Arrays.sort() to reverse an array :) <0> my main hazzle is getting the layout for the gui right.. <0> when using JTable outside JScrollPane it strips the headers.. <0> and when using JScrollPane pack ****s it up <0> anyone here that is experienced with swing? <4> hello <0> hi <4> i'm creating a collaborative whiteboard tool <4> using rmi <0> how cute <4> lol <4> in the quick tester i wrote up i'm having some concurrency issues... <0> dont ask me <0> i cant even get GUI the way i want it.. <4> when user1 draws using a free form pen...and user2 does the same...the drawing gets mixed up... <4> can anyone give me a general model of how to handle this... <4> i'm using the graphics context <0> well ur reading their input as the same obviously.. <0> :p <0> or maybe im just a retard like always.. <0> i cant even get written code to work <0> trying to color every second line grey.. <0> using ready made code.. <0> but ofc im not successful <0> http://www.chka.de/swing/table/faq.html <4> not sure what u mean...probably my fault for not making myself clear... <0> tahts the code if u feel like helping.. <4> say i'm using the mouse to draw <0> well i guess u have already created objects for each user <4> are u talking to me? <0> yes <4> ok..its just i'm not using swing tables or anything like that...as in the url u gave.. <0> no that was my question <0> :)
<4> basically this is a drawing program and one of the tools allows you to draw using the mouse <0> i know what ur doing <4> ahh <0> but, i ***ume you are creating objects for each user <4> ok raki..i don't know the answer...but <4> a few years ago i worked on something similar <4> and i think the solution was to create a custom table model <4> google that <4> or check out http://www.javaalmanac.com <0> well <0> read the link i pasted <0> then go to "How can I have colored cells?" <0> it shows a way to do it <0> but i copy pasted everything and added it to the end of my program <0> but it didnt compile.. <4> what error are u getting> <4> ? <0> lemme recomp <0> starts with extends _D_efaultTable.. etc.. <0> alot of cannot find symbol <4> that looks like a syntax error...look for erronous capitalization in your code <0> burnsey <0> i copypasted the example right off <0> just copypasted and added it to EoF <0> can someone please explain how i can sort this matter? <3> dont copy and paste code when u dont know how it works <3> understand the code and try to develop it yourself <0> =) <0> just want to stripe the damn JTable :P <3> I have no knowledge of swing etc, I'm a J2EE/web based dev <3> I would think u would iterate through each row and paint every odd one, but I have no idea of how u would do that. <0> Deano|Wrk well from what i have gathered <0> theres some glitch <0> which makes it harder to do it <0> which means u should do it like that code i refered to <0> Deano|Wrk <0> http://www.exampledepot.com/egs/javax.swing.table/Stripe.html?l=rel <0> can u see it that works for u? <3> as I said. <3> I know nothing about GUIs so I am unable to help <3> and no, I have no immediately available test environment, nor the time to help to that degree, <3> like most people here. <5> There some methods to compare Calendar or Date better than converting to mills, subtracting, then dividing my the time unit of interest? I wanted to compare 2 dates and determine the # days between them.... <3> look at the Calendar API JavaDoc <3> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html <3> you'll see after() before() etc etc <3> maybe I should of read the last bit of your question though. <3> not sure there's a better version than: long days = (date.getTime() - date2.getTime()) / (1000 * 60 * 60 * 24); <3> but you're not considering any leap days between years, daylight saving time etc <3> but I suppose Calendar should sort that out via the timeInMillis, and your locale. <5> I would expect leap days to be considered (using timeToMillis() should)and DLS is not too critical as I only care on the scale of days. <3> aye as I said <3> yeah can't think of another way than that tbh <5> getTime() subtraction results in a numeric value? <5> I would think I need timeToMillis() instead of getTime() for the math <5> (well, getTimeInMillis(0 I think) <3> yeh I'm not sure how Date localisation works <3> I expect that would be your better choice. <5> k. Was not sure if there was a better method. I know SQL has a TO_DAYS() function (which is likely just the above math) <5> no biggie, ok with the math though. <3> I'm unaware of one in the API <3> indeed, I too would look for one in the API first <5> yeah, at 1.5 right now, but def do not see it built in there...oh well <6> ihu <6> i need help about java <7> hello everyone. I am trying to iterate a collection filled with objects that implements an interface. I now wish to delete items form the collection. <7> i have two objects stored, A implements C, and B implements C <7> now, using the instance of. how can i find out if there are any onbjects, lets say of A, left in the collection? <7> my question, is there a way of inverting the statement <7> if ( iterator instanceof C ) <7> if there aren't any left, then i will not be able to delete items from the collection <8> http://folk.uio.no/jonmv/inf1010/ukesoppgaver/kodefiler/Uke5.java <8> why cant one just put the code from the contstructor into main? <8> *construcktor
Return to
#java or Go to some related
logs:
unresolved external symbol _socket@12 referenced in function _main #mysql wankin on cam #asm #AllNiteCafe sfarc nipple Goofootz
#skype scrambled screen upon ubuntu install entourage nzbs
|
|