Jump to content

make swing JRadioButton unchangeable

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts
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();

Edited by acwclassic, 16 May 2008 - 11:13 AM.


#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Glad you found the solution (less than 15 minutes after you posted the question!). :)
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts
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

#4
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts
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

#5
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Maybe I should wait 15 minutes, and you'll solve it by yourself... :D
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#6
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts

Xav said:

Maybe I should wait 15 minutes, and you'll solve it by yourself... :D

actually i did.. setDisabledTextColor(Color);
its like posting here is making me think

#7
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
HA HA HA! That's practically a cliche! :D
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#8
acwclassic

acwclassic

    Newbie

  • Members
  • PipPip
  • 25 posts
nevermind, realised the setIcon function only worked for gif and not jpeg.

Edited by acwclassic, 18 May 2008 - 01:27 PM.


#9
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Amazing. CodeCall is practically therapeutic. :)

Edited by Xav, 20 May 2008 - 12:20 PM.
Spellin!

Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#10
gamers2000

gamers2000

    Newbie

  • Members
  • Pip
  • 3 posts
Sorry for gravedigging, but I couldn't help but laugh reading this thread :D

#11
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
It's OK, a lot of threads end in laughter - or tears.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums