From d9122cb1ff573730418331bf73a92880ea6fbf9c Mon Sep 17 00:00:00 2001 From: Diego Waxemberg Date: Fri, 13 Dec 2013 01:52:18 -0500 Subject: [PATCH] host text box is now always selected regardless of OS --- limelight-pc/src/com/limelight/gui/MainFrame.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/limelight-pc/src/com/limelight/gui/MainFrame.java b/limelight-pc/src/com/limelight/gui/MainFrame.java index 8cdcd70..ff8bc65 100644 --- a/limelight-pc/src/com/limelight/gui/MainFrame.java +++ b/limelight-pc/src/com/limelight/gui/MainFrame.java @@ -53,7 +53,9 @@ public class MainFrame { hostField.setMaximumSize(new Dimension(Integer.MAX_VALUE, 24)); hostField.setToolTipText("Enter host name or IP address"); hostField.setText("GeForce PC host"); - + hostField.setSelectionStart(0); + hostField.setSelectionEnd(hostField.getText().length()); + stream = new JButton("Start Streaming"); stream.addActionListener(createStreamButtonListener()); stream.setToolTipText("Start the GeForce stream");