public class JavaConfig extends VirtualComponentAdapter
| Modifier and Type | Class and Description |
|---|---|
static class | JavaConfig.JavaInfoClass used to get the information of the Java running process and it's environment. |
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES| Modifier and Type | Method and Description |
|---|---|
static String | addJavaVersionSpecificOptions(String params, int ver)Adds "-Xss1m" if none is specified for Java 16 or better to workaround for bug in Java 16-17.0.2 (or perhaps higher). |
static int | getClientJavaVersion()Gets the configured Java version of the Client. |
static PhantomRuntime | getEditorParallelRuntime(ClientSession cs)Called when the client session attempts to connect to the Editor with a Parallel Run session. |
static int | getJVMDebuggingPort()Gets the JVM debugging port. |
static int | getTargetServerJavaVersion()Gets the configured target Java version of the Server. |
static void | initJavaCombo(VirtualPanel vp, int ver)Fills the "JAVA" combobox with versions MIN to MAX. |
void | onAction(VirtualPanel vp, String controlID)Push buttons and menu items generates this event when selected. |
void | onCheckedChange(VirtualPanel vp, VirtualControl control, String controlID, int state)Checkbox changes. |
void | onContentChanged(VirtualPanel vp, VirtualControl control, String controlID, String text)Entry fields and multiple line entry fields generates this message. |
void | onContentChanged(VirtualPanel panelvp, VirtualControl control, String controlID, String text, int line)Combination boxes and spin buttons generates this message. |
static String | onEclipseLaunchClient(EclipseProject project, String mode)Eclipse will launch the client in Parallel Run and this method is called to begin loading the application. |
void | onPanelCreate(VirtualPanel vp)Upon panel creation, the INI file initializes the dialog box. |
static String | saveBuildBeforeRun(boolean doSignClientJarFiles, Consumer<String> callback)Eclipse will launch the client in Parallel Run and this method is called to begin loading the application. |
static String | validateJavaDirectory(String dir)Validates a Java 8/9/... |
onAction, onAction, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onPropertyChange, onSelectionChangedonModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelClosing, onPanelDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonPageActivated, onPanelClose, onPanelClosing, onPanelDestroypublic static String addJavaVersionSpecificOptions(String params, int ver)
For Java 25, add another option: "--enable-native-access=ALL-UNNAMED".
params - The parameters.ver - The version.public static String onEclipseLaunchClient(EclipseProject project, String mode)
public static String saveBuildBeforeRun(boolean doSignClientJarFiles, Consumer<String> callback)
public static PhantomRuntime getEditorParallelRuntime(ClientSession cs)
public static void initJavaCombo(VirtualPanel vp, int ver)
public void onPanelCreate(VirtualPanel vp)
onPanelCreate in interface VirtualPanelListeneronPanelCreate in class VirtualPanelAdaptervp - The panel issuing the event.public void onContentChanged(VirtualPanel panelvp, VirtualControl control, String controlID, String text, int line)
line parameter is set to -1 if no line is selected.The default implementation in this adapter calls onContentChanged(panel,control,controlID,text).
onContentChanged in interface VirtualComponentListeneronContentChanged in class VirtualComponentAdapterpanelvp - The panel issuing the event, parent of the control.control - The control issuing the event.controlID - The control ID issuing the event.text - The control text contents.line - The selected line, or -1 for none.public void onContentChanged(VirtualPanel vp, VirtualControl control, String controlID, String text)
onContentChanged in interface VirtualComponentListeneronContentChanged in class VirtualComponentAdaptervp - The panel issuing the event, parent of the control.control - The control issuing the event.controlID - The control ID issuing the event.text - The control text contents.public void onCheckedChange(VirtualPanel vp, VirtualControl control, String controlID, int state)
onCheckedChange in interface VirtualComponentListeneronCheckedChange in class VirtualComponentAdaptervp - The panel issuing the event, parent of the control.control - The control issuing the event.controlID - The control ID issuing the event.state - State (0=unchecked, 1=checked and 2=third state [only for check boxes]).public void onAction(VirtualPanel vp, String controlID)
onAction in class VirtualComponentAdaptervp - The panel issuing the event, parent of the control.controlID - The control ID issuing the event.public static int getJVMDebuggingPort()
public static int getTargetServerJavaVersion()
{@link Plaf#MIN_JAVA_VERSION} or the smallest number of {@link Plaf#MAX_JAVA_VERSION} and the current Java version in {@link Plaf.javaVer}.public static int getClientJavaVersion()
{@link Plaf#MIN_JAVA_VERSION} or the smallest number of {@link Plaf#MAX_JAVA_VERSION} and the current Java version in {@link Plaf.javaVer}. If not valid, the return value is zero.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.