Click here to Skip to main content
15,888,461 members
Home / Discussions / Java
   

Java

 
AnswerHow to establish connection between JAVA & MS SQL Server ? Pin
Amol Lendave16-Oct-13 1:17
professionalAmol Lendave16-Oct-13 1:17 
QuestionRe: How to establish connection between JAVA & MS SQL Server ? Pin
Richard MacCutchan16-Oct-13 2:56
mveRichard MacCutchan16-Oct-13 2:56 
AnswerRe: How to establish connection between JAVA & MS SQL Server ? Pin
Amol Lendave16-Oct-13 20:49
professionalAmol Lendave16-Oct-13 20:49 
GeneralRe: How to establish connection between JAVA & MS SQL Server ? Pin
Shubhashish_Mandal16-Oct-13 21:00
professionalShubhashish_Mandal16-Oct-13 21:00 
GeneralRe: How to establish connection between JAVA & MS SQL Server ? Pin
yadagirirao aileni16-Oct-13 23:59
yadagirirao aileni16-Oct-13 23:59 
GeneralRe: How to establish connection between JAVA & MS SQL Server ? Pin
Richard MacCutchan16-Oct-13 21:13
mveRichard MacCutchan16-Oct-13 21:13 
GeneralRe: How to establish connection between JAVA & MS SQL Server ? Pin
Amol Lendave16-Oct-13 22:59
professionalAmol Lendave16-Oct-13 22:59 
QuestionHow to Align Radio Buttons in MigLayout? Pin
chdboy16-Oct-13 0:42
chdboy16-Oct-13 0:42 
http://i42.tinypic.com/dgl9ns.jpg

This is the Image of what I have right now.

I want to align Radio Buttons so that It will not have the space left to "Y" ,so that they will align correctly.

Java
String yesString = "Y";
	String noString = "N";
	JRadioButton yesButton = new JRadioButton(yesString);
	JRadioButton noButton = new JRadioButton(noString);


And below while adding

Java
yesButton.setMnemonic(KeyEvent.VK_R);
        yesButton.setActionCommand(yesString);
        yesButton.setSelected(true);       
        
        
        noButton.setMnemonic(KeyEvent.VK_R);
        noButton.setActionCommand(noString);
        
        ButtonGroup group = new ButtonGroup();
        group.add(yesButton);
        
        group.add(noButton);
        
        panel.add(yesButton,"cell 12 12 ,       gap related");        
        panel.add(noButton,"wrap , align label,gapleft 0");


EDIT:
I just did this and solved my problem

Java
panel.add(yesButton,"gapleft 0,split");


modified 16-Oct-13 11:05am.

QuestionJScrollPane is not showing the frame properly Pin
chdboy14-Oct-13 19:36
chdboy14-Oct-13 19:36 
AnswerRe: JScrollPane is not showing the frame properly Pin
Shubhashish_Mandal16-Oct-13 20:51
professionalShubhashish_Mandal16-Oct-13 20:51 
Questionjava file Pin
hemanthpoluru13-Oct-13 15:19
hemanthpoluru13-Oct-13 15:19 
AnswerRe: java file Pin
Richard MacCutchan13-Oct-13 20:46
mveRichard MacCutchan13-Oct-13 20:46 
AnswerRe: java file Pin
Logical9416-Oct-13 19:09
professionalLogical9416-Oct-13 19:09 
Questionabout java socket Pin
rualchina12-Oct-13 4:48
rualchina12-Oct-13 4:48 
AnswerRe: about java socket Pin
jschell12-Oct-13 10:34
jschell12-Oct-13 10:34 
GeneralRe: about java socket Pin
rualchina12-Oct-13 17:19
rualchina12-Oct-13 17:19 
GeneralRe: about java socket Pin
rualchina12-Oct-13 17:24
rualchina12-Oct-13 17:24 
GeneralRe: about java socket Pin
Richard MacCutchan12-Oct-13 23:58
mveRichard MacCutchan12-Oct-13 23:58 
GeneralRe: about java socket Pin
rualchina13-Oct-13 4:02
rualchina13-Oct-13 4:02 
GeneralRe: about java socket Pin
Richard MacCutchan13-Oct-13 4:53
mveRichard MacCutchan13-Oct-13 4:53 
GeneralRe: about java socket Pin
jschell14-Oct-13 8:00
jschell14-Oct-13 8:00 
QuestionImage transfer using TCP/IP Pin
Claraviolet10-Oct-13 5:22
Claraviolet10-Oct-13 5:22 
AnswerRe: Image transfer using TCP/IP Pin
Richard MacCutchan10-Oct-13 6:18
mveRichard MacCutchan10-Oct-13 6:18 
GeneralRe: Image transfer using TCP/IP Pin
Albert Holguin15-Oct-13 14:48
professionalAlbert Holguin15-Oct-13 14:48 
GeneralRe: Image transfer using TCP/IP Pin
Richard MacCutchan15-Oct-13 21:18
mveRichard MacCutchan15-Oct-13 21:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.