Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-16-2008, 02:00 PM
acwclassic's Avatar   
acwclassic acwclassic is offline
Newbie
 
Join Date: Mar 2008
Location: sweden
Posts: 16
Rep Power: 2
acwclassic is on a distinguished road
Default make swing JRadioButton unchangeable

topic, is there a command to make them unchangeable or how do i make them? (after a choice has been made)
Thanks

edit: found the function setEnabled();

Last edited by acwclassic; 05-16-2008 at 02:13 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-16-2008, 02:19 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: make swing JRadioButton unchangeable

Glad you found the solution (less than 15 minutes after you posted the question!).
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-17-2008, 03:40 PM
acwclassic's Avatar   
acwclassic acwclassic is offline
Newbie
 
Join Date: Mar 2008
Location: sweden
Posts: 16
Rep Power: 2
acwclassic is on a distinguished road
Default Re: make swing JRadioButton unchangeable

Xav - geuss i should have looked more carefully before posting=)

another question:
i got a JFrame that is creating a JPanel in another seperate class.
when a certain event happends i want to enable a button in the JFrame.
any ideas on how i can effect things in the JFrame from the JPanel?
thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-18-2008, 08:33 AM
acwclassic's Avatar   
acwclassic acwclassic is offline
Newbie
 
Join Date: Mar 2008
Location: sweden
Posts: 16
Rep Power: 2
acwclassic is on a distinguished road
Default Re: make swing JRadioButton unchangeable

solved it in another way but have another question still=)

when a textfield is setEnabled(false) in java it changes color to ligthblue, and the color becomes unchangeable. (setForeground dosnt work)
i want the textfield to have a more "readable" color. so i search for eigther a way to change the color OR a way to make the unaccesible for the user without using any of the Enabled or setEnabled commands.

Thx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-18-2008, 08:35 AM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: make swing JRadioButton unchangeable

Maybe I should wait 15 minutes, and you'll solve it by yourself...
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 05-18-2008, 09:20 AM
acwclassic's Avatar   
acwclassic acwclassic is offline
Newbie
 
Join Date: Mar 2008
Location: sweden
Posts: 16
Rep Power: 2
acwclassic is on a distinguished road
Default Re: make swing JRadioButton unchangeable

Quote:
Originally Posted by Xav View Post
Maybe I should wait 15 minutes, and you'll solve it by yourself...
actually i did.. setDisabledTextColor(Color);
its like posting here is making me think
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-18-2008, 09:23 AM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: make swing JRadioButton unchangeable

HA HA HA! That's practically a cliche!
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-18-2008, 02:57 PM
acwclassic's Avatar   
acwclassic acwclassic is offline
Newbie
 
Join Date: Mar 2008
Location: sweden
Posts: 16
Rep Power: 2
acwclassic is on a distinguished road
Default Re: make swing JRadioButton unchangeable

nevermind, realised the setIcon function only worked for gif and not jpeg.

Last edited by acwclassic; 05-18-2008 at 04:27 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-20-2008, 03:20 PM
Xav's Avatar   
Xav Xav is offline
Guru
 
Join Date: Mar 2008
Location: London, England
Posts: 3,190
Last Blog:
The Windows Registry
Rep Power: 28
Xav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to allXav is a name known to all
Send a message via MSN to Xav
Default Re: make swing JRadioButton unchangeable

Amazing. CodeCall is practically therapeutic.
__________________
Xav, the power of youth
Worship the Creator... not his creations
Web Site | Beta Site

Last edited by Xav; 05-20-2008 at 03:20 PM. Reason: Spellin!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB 6.0: Tutorial, How to make a GIF in your application TcM VB Tutorials 17 07-01-2008 03:26 PM
VB 6.0: Tutorial, How to Make Glass2K!! TcM VB Tutorials 11 06-02-2008 02:08 PM
Can someone make me simple bot to .... Icejam Request Services (Paid) 3 01-17-2008 07:07 AM
How to make and use a library twitch C Tutorials 0 06-13-2007 04:32 AM
How to make Dumplings ahsan16 The Lounge 2 01-11-2007 10:55 PM


All times are GMT -5. The time now is 01:55 AM.

Contest Stats

dargueta ........ 128.00000
John ........ 127.00000
Xav ........ 107.00000
gaylo565 ........ 18.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

Ads