| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> or you replace the standard icons <0> there are properties that define a look and feel <0> i'm betting there are properties for the maximize icons etc aswell <1> what about the border colour of the window and the gradient in the titlebar <0> same thing <0> you can modify the metal theme <0> set the color of the titlebar <0> i'm not sure about the gradient though <1> i could do with using a background there ok ill look into how to use the metal theme <0> if you dont want to learn how to write your own look and feel <0> you would just override the paint method of the frame <0> and draw the titlebar <1> righ <0> hm, I might have found a lib that does it all for you
<1> ooooh <0> I only found the api docs so far <2> a nice resource for changing some things of the main frame of an app: http://www-128.ibm.com/developerworks/java/library/j-iframe/ <0> hm, its a different titlebar then the titlebar of a frame <1> oh <0> looks fine <0> I always though iframe was only for swt apps <2> haven't looked into it yet. <0> NeoFuture, a standard way to replace the close icon is this: <0> ImageIcon icon = new ImageIcon("d:/small.gif"); <0> UIManager.put( "InternalFrame.closeIcon", icon ); <0> <1> :D <1> ill have a play <0> http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/synth/doc-files/componentProperties.html <0> there is a list of the properties <0> InternalFrame.maximizeIcon <0> etc <0> so that would solve the icons part <0> now the gradient part <0> http://www.chinaitpower.com/source/jdk150/javax/swing/plaf/metal/MetalTitlePane.java.html <0> this is that the Metal look and feel uses to draw the title <0> the paintComponents method shows how the title is colored, and how the icons are painted <3> Hiya guys <0> Thunder^ <3> Rob <4> ey all <5> hi <4> hey calchas, its almost working... it recognizes all of the values that are given to the JList, but its not showing the actual text. <5> k <4> so I for 6 entered names, I see 6 white boxes <5> does it work without your renderer? <4> yeah <5> well that tells you what to fix <4> uhm, not really... <4> Im not overriding any of the values <4> for displaying the text <4> Anyone here with knowledge about listcellrenderers? <4> nvm, its showing now <4> Now i need to know how to add html to java components <5> e.g for a JLabel setText( "<html><body>boo<br>hoo</body></html>" ); <5> or for page rendering see the editor components <4> k, you answered it :) <4> thx alot <5> np <4> I'm finally making progress on the JList <6> omg <6> ioops <4> hmmmm, does anyone have ideas on making the GUI look different? I mean, I just make my JList look different, anyone has tips to distinguish it from other schoolprojects? <7> hi, i got a newb question. I have a jframe, when i resize it it doesn't redraw until i release the mouse. how i can force it to redraw while resizing? <5> I'd look into catching some of the mouse or windo events at attaching the code there <7> hmm
<7> i'm pretty sure i used to do it with a single command <3> Ratty: ComponentListener is what you need to look at <3> But I am wrong.. <3> You probably need to take calchas' advice <7> i don't remember doing anything that complex <5> you don't seem to remember doing anything simpler either <7> i remember it being simple <5> implementing a listener is about as simple as it gets <7> but waht do i do with the listener? <5> LEARN <3> Ratty: The Really Big Index -> http://java.sun.com/docs/books/tutorial/reallybigindex.html <7> all i want is to avoid this uglyness: http://junk.****software.com/ugly.png <8> omg, that's so drop dead ugly! <8> hi cal, thunder, everyone :) <7> i know <5> hi Clackwell <7> it's like how win3.1 resized windows <8> Ratty: are you sure that screenshot shows the problem? <7> yes <7> i want the window to resize when i resize it, rather than getting an empty grey rectangle <8> Ratty: hm, not clear to me. but i didn't read back in the channel, so perhaps that is my problem. <8> Ratty: you want it redrawn/painted while resizing it? <7> yup <7> linux doesn't seem to require it, but windows does <3> hey Clackwell btw :-) <8> Ratty: possibly related: http://www.google.com/search?complete=1&hl=en&q=jframe+repaint+while+resize&btnG=Google+Search <7> yeah i tried all them, found nothing <8> Ratty: i "found something" in the second link already... <7> yes, and that something is actully a l ink back to that very same google search <7> and that's actully a wish list for swing anyway <9> hi <7> lo <9> any one know about running rmi client in an applet? <8> Ratty: http://groups.google.com/groups?complete=1&hl=en&lr=&q=jframe%20repaint%20while%20resize&btnG=Search&sa=N&tab=wg ? <7> aye that's good. setDynamicLayout() <7> i knew it was 1 command <5> Smithers same restrictions as any applet <8> my first google search had that too - at first, in experts-exchange. opening that url again though hid the solution. then, searching again, the complete experts-exchange link was gone from the google result. <5> without jumping round security you can only connect to the server that served the applet <7> experts-exchange is usually crap <10> erroneous! erroneous! <8> Ratty: i disagree in so far as they seem to have answers to many common issues, just like this one. how can you call them crappy when they have the solution to your crappy problem? :) <7> keyword was "usually" <8> i have them provide answers to a lot of irc questions. good enough for me. <9> seem to be having issues with connecting to the server...i placed the policy file in a jar so reading that isn't the problem <5> what problem? <8> "issues connecting"? <8> "express yourself" sang madonna, and she had that part right. <9> i will..its actually some one else developing the thing and i'm asking questions on their behalf... <8> ratty: you are welcome. <8> Smithers: oh lord... <9> so i will be more specific or try and get them to come on...yeah i know <5> Smithers so what is the exception <9> i'm getting the developer to start with a hello world rmi applet...if he has same issue with that i'll be back on to you :-) <4> Any tips on how to make my GUI look different than standard designs? <5> make a custom look and feel <11> implement a LAF <5> round objects etc <5> not for the faint hearted <5> if you want it to look like a different school project, get it working and fully meet the requirements, that will stand out a mile <11> or just give all the objects strange sizes and colours ;)
Return to
#java or Go to some related
logs:
gallagher octopus sledge-o-matic #chatzone WHO DEVOURED A CAKE WITH THE WORDS 'EAT ME' WRITTEN ON IT IN CURRANTS ? the exorcist soundtrack remix 2006 #linux #chatzone #teens #apache strong dcc++ #AllNiteCafe
|
|