Issue #2291 - Fixed resizing of components.
Former-commit-id:eee580482f
[formerlyea96ce87e9
] [formerly39e8124ef7
] [formerly39e8124ef7
[formerly1927ba49ea
]] [formerlyeee580482f
[formerlyea96ce87e9
] [formerly39e8124ef7
] [formerly39e8124ef7
[formerly1927ba49ea
]] [formerlyd3eb6c16ec
[formerly39e8124ef7
[formerly1927ba49ea
] [formerlyd3eb6c16ec
[formerly 9956936125611cd67aaaf6ba6e617e01b004a738]]]]] Former-commit-id:d3eb6c16ec
Former-commit-id:861155a9cb
[formerly9ecbd3bc7a
] [formerlydad11aca88
] [formerly d685f933f18b2b8b3671ac0015e7dbeda8bfee37 [formerly 3951681cd94fb490f91e2f28a8cc25e01dca0872] [formerlydad11aca88
[formerlyb8520d1e12
]]] Former-commit-id: b0549f68c6a7d2df42166d961bfbfb830eb46913 [formerly 01a9b6f90dbcee7c5d6fccf8f0fae83e9311a50b] [formerly19d90c676f
[formerly9bf640f116
]] Former-commit-id:19d90c676f
Former-commit-id:36195992bd
This commit is contained in:
parent
c7da930d8b
commit
029a65b283
1 changed files with 9 additions and 6 deletions
|
@ -21,7 +21,8 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
|
|||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 7, 2013 skorolev Initial creation
|
||||
* Nov 7, 2013 skorolev Initial creation
|
||||
* Jan 20, 2013 #2291 lvenable Fixed resizing of components.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -41,23 +42,26 @@ public class TextMessageDlg extends CaveSWTDialog {
|
|||
|
||||
@Override
|
||||
protected void initializeComponents(Shell shell) {
|
||||
GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, false, false);
|
||||
GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
|
||||
GridLayout gl = new GridLayout(1, false);
|
||||
Composite mainComp = new Composite(shell, SWT.NONE);
|
||||
mainComp.setLayout(gl);
|
||||
mainComp.setLayoutData(gd);
|
||||
|
||||
gd = new GridData();
|
||||
gd.widthHint = 350;
|
||||
gd = new GridData(SWT.FILL, SWT.FILL, true, true);
|
||||
gd.widthHint = 400;
|
||||
gd.heightHint = 350;
|
||||
StyledText text = new StyledText(mainComp, SWT.MULTI | SWT.WRAP
|
||||
| SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
|
||||
text.setLayoutData(gd);
|
||||
text.setText(messageText);
|
||||
|
||||
gd = new GridData(SWT.CENTER, SWT.DEFAULT, true, false);
|
||||
gd.widthHint = 60;
|
||||
Button okBtn = new Button(mainComp, SWT.PUSH);
|
||||
okBtn.setText("OK");
|
||||
okBtn.setLayoutData(new GridData(SWT.CENTER, SWT.DEFAULT, true, true));
|
||||
okBtn.setLayoutData(gd);
|
||||
okBtn.setLayoutData(gd);
|
||||
okBtn.addSelectionListener(new SelectionAdapter() {
|
||||
@Override
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
|
@ -65,5 +69,4 @@ public class TextMessageDlg extends CaveSWTDialog {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue