on 03-24-2009 2:23 PM
Hi
I would like to know how to include space between radio buttons while using classlib.
Below is my code snippet:-
RadioButtonGroup rbg1 = new RadioButtonGroup("rbg0"+i);
rbg1.setColumnCount(3);
rbg1.addItem("3","");
rbg1.addItem("2","");
rbg1.addItem("1","");
I tried including text and setting encode to false but I got an exception:-
rbg1.addItem(3,"include Space");
rbg1.setEncode(false);
setEncode throws exception->symbol cannot be resolved.Do I have to include some imports to resolve this error?
Hi Srividhya,
The below link may help you
http://help.sap.com/erp2005_ehp_04/helpdata/DE/67/cb8b412bb8a509e10000000a155106/frameset.htm
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have referred it but I am still not able to find a method which can help me add spaces between the radio buttons.
I also tried to setEncode(false) for the text present but it did not help me as I got the following error:-
(com.sapportals.htmlb.RadioButtonGroup) has protected access in com.sapportals.htmlb.RadioButton
RadioButton r=new RadioButton(rbg5);
r.setText("create space");
r.setEncode(false);
Thanks in advance
hi,
check the link
http://www.java2s.com/Code/Java/Swing-JFC/GroupRadioButton.htm
if this is the case let me know where u struck
bvr
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.