@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> Clackwell... if I had the code to decorate the JFileChooser I wouldn't come here asking if it's possible....
<0> Ok. Could I say my question again? It's really not difficult if you just listen to if againg from the start without any ***umptions.
<0> And Lion-0 You know what I mean, not windows skin, but current system skin you're using
<0> So. Again. Sry for this, but I feel we're talking about the different things.
<0> >> I'm trying to create a JFileChooser dialog without it's frame being a system one."
<0> That's all.
<0> One line.
<1> the file chooser demo does not fiddle with decorations. if it did, maybe it would use the decorations on the dialog, too. <shrug>
<2> w00t. Gotcha.. The final bug has been removed from my webapplication. Some variable (check) I had to add yesterday got in the way, couldn't find it. CVS showed me 1) the variable and 2) the error :) Note to self: its not smart to try "String test = request.getParameter("test").trim();" on a variable which /might/ be Null :P
<3> Lion-O: "final bug" my arse ;)
<2> wlfshmn: shhht, let me be a little optimistic here ;)
<0> Clackwell, see what I mean, it doesn't fiddle with decorations, and I can't make it fiddle with thm.
<1> L-S: ok
<3> Lion-O: welcome to the wonderfullw ord of nz() ;)
<1> " Provides a hint as to whether or not newly created JDialogs should have their Window decorations (such as borders, widgets to close the window, title...) provided by the current look and feel."



<1> L-S: http://www.google.com/search?hl=en&q=jfilechooser%20decoration&qt_s=Search&sa=N&tab=gw
<2> afaik the filechooser will pick up the decorations of the parent window, if it has any.
<1> Lion-O: good point, if so
<2> Clackwell: not sure mind you. Its been a while since I messed with one.
<0> WOOT!
<0> It works!
<0> Clack.. it works
<0> The problem was only that I needed not only JFrame.setdecor.... but also JDialog.setdecor....
<1> L-S: what does? with your code we could now try what Lion-O suggested.
<0> Because my cl*** did not extend JFrome, but JDialog
<0> Clack, everything works, no need!
<1> there are many ways to rome, but one may be better.
<1> oh, there, showDialog
<1> L-S: paste your showDialog line perhaps
<0> Here: check it out. New working screenshot!
<0> www.anime42.com/ss2.gif
<0> This is what I've been searching all the time. Compare to www.anime42.com/ss.gif
<0> Thanx everyone for all your time.
<1> L-S: welcome. paste your showDialog line perhaps.
<1> (for our edification)
<0> Clack, why the hell do you want my showDialog line?
<0> It hasn't got a thing to do with this! The one that solved the problem was: JDialog.setDefaultLookAndFeelDecorated( true );
<1> L-S: because, as Lion-O suggested, that could be the key to having your jfilechooser automatically have the decoration.
<0> Ok, will do
<1> have you tried it or not? if not, you cannot tell wether it is (another) solution.
<0> ok, but setting it to true as default seems like a better idea cos I do it at start and it will work for all my dialog boxes
<0> "this.showDialog( jFrame, "Open Image" );"
<0> where jFrame is it's parent
<1> L-S: ok
<0> the showDialog method doesn't have any Decorations parametar
<0> In any case, thanx for all your help, Clack, Lion. Later
<0> I hope nothing as stupid as this emerges again :D
<1> :)
<3> ther.e partial success atleast..
<2> wlfshmn: ok, ok ;) I won't let you tell me 'told you so' ;) Unfortunatly it wasn't a problem with my Java webapplication but with a bashscript I used to process e-mails ;)
<2> Its the one thing I don't like about certain GNU tools: backward imcompatibility. So where I used -Y off to disable proxy use I had to use --no-proxy all of a sudden 8) Anyway, I'm done :)
<4> has anyone had an experience working with jmf under linux?
<2> the only thing I can say with regards to Java & Linux is "get the jdk/jre from Sun".
<4> i did
<4> I still can't run it...
<4> I can compile, but can't run
<2> without an error message there's not much to comment on.
<4> i understand, but i think it's JMF related issue
<4> I set a cl***path with -cl***path to jmf.jar, but when I am trying to run my applet, java complains that some cl***es can't be found
<1> alex1104: like?
<1> url to applet?
<1> why keep errors secret?
<4> pls wait a sec
<4> i am turning on my linux box
<2> also; if you do set a cl***path (normally not advices) also make sure to keep the current directory in it.
<4> i do
<2> adviceD. Oh well.. typo galore ;)
<4> ok, now I set CL***SPATH to both my current working directory and jmf.jar and trying to run applet with appletviwer, and i get an exception java.lang.NoCl***DefFoundError: javax/media/ControllerListener
<1> alex1104: what makes you think that appletviewer or applets makes use of CL***PATH?
<1> and why do you set CL***PATH?
<1> why don't you configure the applet's cl*** path in the html file, like everyone else=
<1> ?
<4> good point



<1> :)
<1> CL***PATH2 "the point is this: making global changes to the cl***path is generally a bad thing, be it with lib/ext or with $CL***PATH because applications invariably depend on different versions of the same libraries and it's only a matter of time until you get version conflicts with not so well defined results" - El_Pollo on #java
<4> how do i set cl*** path in applet html file?
<1> no idea, never learned it by heart.
<4> thanks anyway
<4> i am sure that will work
<1> you are welcome
<1> let's hope that jmf thing/stuff is cross-platform :>
<1> is this supposed to be on the web? (don't laugh, some people have odd ideas about where applets should be used)
<4> it is
<1> i am wondering why you use appletviewer for testing, since it might behave considerably different than the jvm in the browser, loading the applet from a web server.
<4> i tried both
<1> ah, you are not in the debugging/development phase yet, i see.
<4> :)
<4> it looks like i need to set CL***PATH for browser which will be used to load an applet...
<1> no.
<1> because you cannot tell the user to do that, that is nonsense.
<1> the <applet> tag (or whatever the corresponding object crap tag is) contains the cl*** path.
<4> ok
<5> hi
<5> i have declarations :
<5> package pckge1;
<5> then
<5> import pckge2.*;
<5> if i import pckge1 from somewhere, will pckge2 be included with it?
<6> no
<5> is there a way to edit the CL***PATH for the current session?
<6> set the cl***path environment variable? Load java with -cp?
<5> i am building a package (for a java exercise)... but when i want to import it to another package, the compiler cannot find the directory
<5> ok
<5> thanks
<7> hi there
<7> i got a problem with jinternalframe... in one of my frames i have a canvas where i drop my custom stuff
<7> when i move one jinternaframe over this canvas, it seems to go under it
<7> i mean the canvas is still drawn on top of the jinternalframe that im dragging
<8> :) sorry, my specialization is thin clients application
<7> what's thin client application?
<7> non sat fat?
<8> web applications
<2> disproportio: you probably need to write your own cl***loader. The cl***loader environment variable has not much meaning once your program is started since it only affects the JVM.
<7> this is a web application...
<7> never used jinternalframes in a web app?
<2> thats very unlikely indeed :)
<7> just make the screen big :P
<8> swing as clients? most unlikely
<2> servlets target webbrowsers.
<7> anyway i have no idea why the canvas is that way
<8> but technically possible. that's fat client.
<7> well, im using awt right now... size = 300k
<7> swing = 10k
<7> it's just a matter of having the java plugin installed
<9> actually looking at current browser technology you might argue there's no such thing as a thin client :)
<7> thin client = less than 215 megas ram XD
<8> that's true kmh, but there are still dial up clients.
<9> Creative1: what do you mean ? size of the source code ?
<7> in memory
<7> solobinan, if you got the plugin, swing loads way faster in dial up
<9> Creative1: haha thin client is fatter than many servers then :)
<7> the only problem is that thye need to have a java plugin, not the default one
<7> kmh, i know, i was kidding :)
<9> Creative1: i doubt that - how did you measure the memory ?
<7> well, as an example i wrote this webchat www.bocazas.com
<7> compatible with java 1.1, works in every place i tried it... wasn't easy task
<7> from dial up it's 200k
<9> Creative1: well if you look at the memory usage of firefox 1.5 it is no kidding at all it easily uses 200 mb (memory)
<10> howdy
<7> im doing a swing version now, looks better, feels better... code is much easier... file download 20ks so far and it has way more stuff than the old version
<10> what's the difference in using public and not using public in a single java program ?
<9> Creative1: : i still don't get how you've got the 10k and 300k
<10> that consist of multiple cl***es
<10> a single file
<7> kmh, file size
<9> size of the cl*** file ?
<7> the jar file


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

12WHICH COMIC STRIP WAS BANNED FROM STARS AND STRIPES?
#php
fxs xp101
#php
#MissKitten
#chatzone
javascript set scrolltop
#linux
#c++
thermite recipie



Home  |  disclaimer  |  contact  |  submit quotes