| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> @ chikoy <1> one sec <2> uh, that's odd.. the window normally is invisible when windowclosing fires right? <2> since you're closing it <2> or what you're trying to do is when wnidowclosing is fired, you want a popup to appear first rather than closing the window? <0> yeah. that's why i have a JOptionPane to ask user if he really wants to exit <2> buttfree: aah that..s imple <2> hang on.. ill check my code. <0> oh thanks :) <2> if i can find it lol <0> heheh <2> check this out <2> JFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); <2> will not close the JFrame directly, you can put code in your windowadapter or listener for whatever stuffs or popups you want to call <0> hmmm... w8 i'try <1> buttfree setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
<2> that works :) i made a notepad appilcation way back when i was tweaking with swing <1> something like this might be the culprit <1> aah we got that already <2> kmh: hehehe <0> cool. it works actually. thanks chikoy <0> :) <0> and you too kmh <2> i need help now lol <0> k. let's try <2> never mind. it worke dlol <0> heheh <2> crap. i lost the code hahaha <3> hi <3> all <3> somebody? <3> ive a question <0> shoot <4> hello. any flash coders here? <0> go to #flash <5> anyone using OfficeBean here..? <6> http://bildschirmarbeiter.com/fun_8897_if-the-internet-was-real.html <7> hehe <5> i have added OffibeBean in a JTabbedPane, but it shows in a new window. why? <6> buttbroker: no idea what officebean is. sounds like an activex bridge thing integrating ms offices. <6> -s <5> openoffice <5> actually, it's a native component <5> why does native components don't show up in JTabbedPnaes? <6> what happens if you add "officebean" to a jpanel? <5> instead they are displayed in a separate native window <6> buttbroker: maybe it is not a matter of "native" components. awt components are "native" too afterall. <5> hmmm... <1> well native components are potentially troublesome, in particular if there display depends on their native code <5> yeah <1> however openoffice is designed to work with java afaik <5> when i put The OfficeBean in a jpanel, it works fine. but not in a JTabbedPane <1> so i wouldn't expect such elementary problems <5> it loads in its own separate native window <1> buttbroker : are you sure you use jtabbed pane correctly ? <1> you need to add jpanels to jtabbedpane afaik <1> so you should add the bean to a jpanel and add the jpanel to jtabbedpane <1> you could add the bean directly if it is derived from jpanel (or at least a container) <5> yeah. myTabbedPane.addTab("Writer", new OOWriterPanel()) <1> try myTabbedPane.addTab("Writer", newJPanel().add(new OOWriterPanel())) <5> OOWriterPanel extends JPanel <1> but i would be very vary of native windows outside the swing architecture, that's recipe for disaster <5> sort of <1> already combining (native/heavyweight) awt components and swing is pain in the *** <1> and proned to all kind of errors and side effects <1> hmmm then it should work <1> what happens if you try what i've suggested ? <5> well i solved my problem <5> i need to call JTabbedPane.setSelectedComponent first <5> heheh. officebean's parent must be visible first <5> ;) <1> oh <6> oh boy... <5> if not, it will load in it's native window <1> life in gui land :) <5> heheh, have just ran it fine now <1> actually i wonder whether it really uses a native window
<5> it do. it calls from a server instance <1> if it does you are likely to get problems when adding other JPanels to it <1> since light weight containers like JPanel don't work well with heavy weight containers <5> tha's why i used JTabbedPanes, to separate it from other SWING components <1> well JTabbedPanes is a swing component <5> yeah <1> but maybe it manages its containers in such a way that the heavy weight/light weight issue doesn't matter <5> sort of <6> you are welcome, buttbroker. <8> Heyas, if I have JPanel filled with buttons, is there any way to get it to resize vertically if the width would cut off the display of some buttons? <6> http://www.eatmyshorts.com/files/1157488129.gif <9> heh <9> I won't forward that to my girlfriend, I wish to die at an old age <6> yeah, gotta be all sensitif and **** <10> I'm having bg problems with ArrayLists, can someone tell me if this command if a for loop will overwrite the newStudent object? MathQuiz newStudent = (MathQuiz) records.get(i); <10> I've spent nearly 3 hours trying to figure out what's going on, my book ****s. <10> I'm trying to retrieve each object in my ArrayList into object "newStudent" write to a random access file and loop through to the next object in the ArrayList, but it's not working. <10> It loops the correct amount of times, but only writes the last object in the list. <10> ahh, bugger, I just realised what I thought was going on can't be, since it's the last object that's repeated, not the first. <11> for (MathQuiz newStudent: records) { System.out.println(newStudent); } or something close, should do the trick. <12> morning <11> oh wait, thats a ;, not a : iirc. hmm, been a while. <11> yo jottinger <12> what was the command? <11> Aah, I got it right. nice. <11> jottinger: what command? <10> my problem is with my add command I think. <12> the one you're talking about :) <11> jottinger: oh, ryanstein is trying to get all things out of an ArrayList so I figured an "enhanced loop" is a lot neater than a for a xxx loop. <12> The new for() syntax took a while to grow on me, but yeah <11> jottinger: but because I always mix ; and : with that stuff I sometimes confuse the two 8) <10> I add a record, printing out the data confirms it exists, I then add another record using "records.add(student);" and it seems to be overwriting the first record and also adding another one at the end, so I have two of the same objects in my arraylist. <12> well, are you creating a new Student reference each time, or modifying the old one? <10> Does ArrayList actually store the data in object "student" or is it just a pointer to "student" and so when I reuse that object name I'm altering what I've already put in my ArrayList? <9> correct <9> its a reference in the ArrayList to that object <10> 3 hours. :( <12> it stores the reference <10> Thanks. <10> I can't believe I've spent 3 hours on this. <12> ryanstein: pretty simple logic, though. Do you not have a debugger handy at all? <10> No. <8> ryanstein, paste a larger block to the paste site? <12> ryanstein: well, here's a hint: netbeans, eclipse, jdeveloper are all free <12> or have free editions. IDEA also has a free evaluation period and has an educational price. <12> All four have useful debuggers. <11> indeed. sometimes an ide can indeed be very handy. <8> Eclipse kicks ***... <7> oh, that reminds me.. it's getting to be time to buy a new IDEA license.. <12> eclipse ****s <12> it's almost as lousy as jdeveloper <11> hmm, I still need to give the latest jstudio ent. a testrun. Probably something for this evening. <8> Bah! Though still only beginning to play with it's profiler... <10> I'm only making simple programs, so I don't think I need a debugger yet. If my book had just mentioned once that an ArrayList was just a list to objects, different to an array that actually stores the data I could have avoided this. <7> so far the profiler is te only thing I use netbeans for ;) <11> wlfshmn: blasphemy ;) <7> Lion-O: it's only because work is too cheap to buy me a license for something commercial ;) <7> besides, I use profilers very rarely anyway.. and most of the time I just use them to pull out reports to prove that -my- code is fine, it's the other guys that ****s <11> wlfshmn: hehe, yeah well, don't mind me. I'm a Netbeans nut anyway :) <12> jstudio... what's that? <7> s/Netbeans// <11> jottinger: the short name for "Java Studio Enterprise", the "enterprise" version of Netbeans (sorta). <12> oh <12> I dislike the copies of netbeans Sun puts out, they're always many versions behind and loaded with ****titude <11> jottinger: aye.. Well, its not really propagated as netbeans but built on... but yeah... <11> Alas; groceries time. <7> wonder. has netbeans stopped leaving it's footprints all over any project you open with it? <12> um <12> in some ways :) <7> better th an nothing I suppose.. as long as it leaves it in an easily removed spot atleast <13> hi everi one
Return to
#java or Go to some related
logs:
id-uri de messanger de fete #php 12WHERE WAS SNOOOKER INVENTED Comfortably_Numb.mp3 netgear ap trivia in romaneste #AllNiteCafe none-static callback #linux #chatzone
|
|