Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 2nd, 2006, 5:55 AM   #11
nemesis
Programmer
 
nemesis's Avatar
 
Join Date: Aug 2005
Location: Bristol, England
Posts: 71
Rep Power: 4 nemesis is on a distinguished road
Send a message via MSN to nemesis
Its easy to do Toro.


 
import javax.swing.*;
//import all your other classes as usuall

class MyJFrame extends JFrame  
{
       public static void main(String[] args)
       {
           try
           {          
              UIManager.setLookAndFeel(
                      UIManager.getSystemLookAndFeelClassName());
             //This will set the look and feel to the platform
             //So it will look like a windows app on windows, a gtk app on
             //linux etc. 
            } catch (Exception e){}

        //now you can do all you other code, like create the instance of 
        //MyJFrame and they will all look like windows forms. 
       }
}

I hoped this helped, i did it off the top of my head so their might be a spelling mistake or 2 in the code
__________________
Bite My Shiny Metal Ass
nemesis is offline   Reply With Quote
Old Jul 2nd, 2006, 9:26 AM   #12
nemesis
Programmer
 
nemesis's Avatar
 
Join Date: Aug 2005
Location: Bristol, England
Posts: 71
Rep Power: 4 nemesis is on a distinguished road
Send a message via MSN to nemesis
Quote:
Originally Posted by Adak
I get it that you have a sartorial bend, (the metal armor, looking "pants", etc.), but some translation, please.

Pants == great?,
"dogs dinner" == ???

Adak
Pants == not great, but i sometimes say it when things go all wrong eg "OH PANTS". Remeber that pants in ye old english(like we speak in england) is what you wear under your jeans/trousers/short etc. But saying "OH UNDERPANTS" in times need does not quite have the same ring to it lol.

dogs dinner == not aesthetically pleasing, or ugly. Another random one would be like the back end of a horse. Its just the British way.
__________________
Bite My Shiny Metal Ass
nemesis is offline   Reply With Quote
Old Jul 2nd, 2006, 10:12 AM   #13
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
I'm going to replace "OH, FUCK" with "OH, UNDERPANTS" the next time I do something stupid like resting my hand on a hot McDonalds grill.

P.S.

Adak, where are you from?
¿De donde eres?
or perhaps D'où es-tu?
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jul 2nd, 2006, 10:15 AM   #14
Toro
Hobbyist Programmer
 
Toro's Avatar
 
Join Date: Apr 2006
Posts: 136
Rep Power: 0 Toro is an unknown quantity at this point
@nemesis: In my previous project I posted. It was a text editor. That text editor had an option where you could change the GUI look and feel with a radio button. Thanks for the tip but I already got it on lock
Toro is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:44 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC