Combining two radio buttons output on a JButton's Text
Hi I have a question i have a GUI with multiple radio buttons and a Calendar. The days on the calendar are made of J Buttons I have created a method to change the text of the days to what the radio buttons represent. Now when i set up the ActionEvent listner i want to combine two of the radio buttons output they are in two different radiogroups so im thinking that they should work because i know two radiobuttons from the same group obviously cant be clicked at the same time here is the code from my class
publicvoid actionPerformed(ActionEvent e){
if(e.getSource() == unscButton && oneButton){
c.setDayText("1 HR U/H");
}
if(e.getSource() == annualButton){
c.setDayText("A/L");
}
if(e.getSource() == oneButton){
c.setDayText("1hr");
}
}
I'm getting an undefined error for the && operator since it is boolean on the JRadio Buttons.
Another question i have is would it be better to use J Combo Boxes with the buttons that represent the hours, would that be able to be combined with a JRadioButton in the Action Listner ? thanks for ant assistance with this problem.

