Skip to content

Commit

Permalink
Various GUI fixes
Browse files Browse the repository at this point in the history
Refactors UI initialization
Adds scrollpane for output resizing
Fixes button alignment
Allows selection of IG directories
  • Loading branch information
dotasek committed Jul 28, 2023
1 parent 1a13d11 commit 23fbab7
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* #L%
*/

import java.awt.EventQueue;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
Expand Down Expand Up @@ -63,7 +62,6 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;

import javax.swing.UIManager;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
Expand All @@ -76,7 +74,7 @@
import org.apache.commons.lang3.NotImplementedException;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.SystemUtils;
import org.apache.xmlbeans.XmlOptionCharEscapeMap;

import org.checkerframework.checker.nullness.qual.NonNull;
import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_10_50;
import org.hl7.fhir.convertors.factory.VersionConvertorFactory_10_50;
Expand All @@ -85,7 +83,7 @@
import org.hl7.fhir.convertors.factory.VersionConvertorFactory_30_50;
import org.hl7.fhir.convertors.factory.VersionConvertorFactory_40_50;
import org.hl7.fhir.convertors.factory.VersionConvertorFactory_43_50;
import org.hl7.fhir.convertors.misc.DicomPackageBuilder;

import org.hl7.fhir.convertors.misc.NpmPackageVersionConverter;
import org.hl7.fhir.convertors.txClient.TerminologyClientFactory;
import org.hl7.fhir.exceptions.DefinitionException;
Expand Down Expand Up @@ -318,9 +316,7 @@
import org.hl7.fhir.utilities.ZipGenerator;
import org.hl7.fhir.utilities.i18n.I18nConstants;
import org.hl7.fhir.utilities.i18n.JsonLangFileProducer;
import org.hl7.fhir.utilities.i18n.JsonLangFileProducer.JsonLangProducerSession;
import org.hl7.fhir.utilities.i18n.LanguageFileProducer.LanguageProducerLanguageSession;
import org.hl7.fhir.utilities.i18n.LanguageFileProducer.LanguageProducerSession;

import org.hl7.fhir.utilities.i18n.LanguageFileProducer.TranslationUnit;
import org.hl7.fhir.utilities.i18n.PoGetTextProducer;
import org.hl7.fhir.utilities.i18n.XLIFFProducer;
Expand Down Expand Up @@ -11173,17 +11169,7 @@ public String getConfigFile() {
}

private static void runGUI() throws InterruptedException, InvocationTargetException {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
GraphicalPublisher window = new GraphicalPublisher();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
GraphicalPublisher.launchUI();
}

public void setTxServer(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/


import javax.swing.*;
import java.awt.EventQueue;
import java.io.IOException;

Expand All @@ -32,9 +33,14 @@ public class GraphicalPublisher {
* Launch the application.
*/
public static void main(String[] args) {
launchUI();
}

public static void launchUI() {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
GraphicalPublisher window = new GraphicalPublisher();
window.frame.setVisible(true);
} catch (Exception e) {
Expand Down
Loading

0 comments on commit 23fbab7

Please sign in to comment.