diff options
| author | Stephan Schwär | 2020-10-12 07:33:00 +0200 |
|---|---|---|
| committer | Stephan Schwär | 2020-10-12 07:33:00 +0200 |
| commit | 1f845b461670de6ed6cb339da1f26338ee5469da (patch) | |
| tree | 0ddd97caddbdf80033025d09c8edde78c6dc6cfe | |
| parent | [client] Redirect after selecting ovf file in image upload wizard (diff) | |
| download | tutor-module-1f845b461670de6ed6cb339da1f26338ee5469da.tar.gz tutor-module-1f845b461670de6ed6cb339da1f26338ee5469da.tar.xz tutor-module-1f845b461670de6ed6cb339da1f26338ee5469da.zip | |
[client] Resttructure layout of OvfConversion page
| -rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageOvfConversionPageLayout.java | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageOvfConversionPageLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageOvfConversionPageLayout.java index d86d063e..18a7ed1d 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageOvfConversionPageLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/layout/ImageOvfConversionPageLayout.java @@ -20,24 +20,12 @@ public abstract class ImageOvfConversionPageLayout extends WizardPage { protected final JTextArea txtInfoText; /** - * Page for uploading an imagefile + * Page converting an ovf to a vmx image. */ public ImageOvfConversionPageLayout(Wizard wizard) { super(wizard, "ovf konvertieren"); setDescription("Ovf zu vmx konvertieren."); - GridManager grid = new GridManager(this, 3, false); - - // -- Browse for VM -- - QLabel imageFileCaption = new QLabel( - "Mit dem Betätigen des konvertieren Buttons wird versucht das ovfTool zu starten."); - - btnStartConversion = new JButton("Konvertieren"); - btnStartConversion.setMnemonic(KeyEvent.VK_B); - grid.add(imageFileCaption); - grid.add(btnStartConversion); - grid.nextRow(); - - grid.add(Box.createVerticalGlue(), 3).expand(true, true); + GridManager grid = new GridManager(this, 1, false); txtInfoText = new JTextArea(); txtInfoText.setBorder(BorderFactory.createTitledBorder("Hinweis")); @@ -46,12 +34,16 @@ public abstract class ImageOvfConversionPageLayout extends WizardPage { txtInfoText.setEditable(false); txtInfoText.setFocusable(false); txtInfoText.setOpaque(false); - txtInfoText.setText("Je nach Geschwindigkeit Ihres Computers " - + "und der Größe der Virtuellen Maschine kann die Konvertierung " - + "einige Zeit in Anspruch nehmen."); - grid.add(txtInfoText, 3).fill(true, false).expand(true, false); + txtInfoText + .setText("Mit dem Betätigen des konvertieren Buttons wird das ovfTool von vmware gestarted.\n" + + "Je nach Geschwindigkeit Ihres Computers " + + "und der Größe der Virtuellen Maschine kann die Konvertierung " + + "einige Zeit in Anspruch nehmen."); + grid.add(txtInfoText).fill(true, false).expand(true, false); grid.nextRow(); - + btnStartConversion = new JButton("Konvertieren"); + btnStartConversion.setMnemonic(KeyEvent.VK_B); + grid.add(btnStartConversion); grid.finish(false); } } |
