@MinDoc(copyright="Copyright 2005, 2009 A. Weinert", author="Albrecht Weinert", version="V.39", lastModified="17.04.2021", usage="start as Java application (-? for help)", purpose="a demo and introductory application on Frame4J (the hello)") public class HelloFrame4J extends App
System.out
.println("Guten Tag, Welt!")
HelloFrame4J
demonstrates, that by usage of a
good framework like Frame4J, you go
farther by orders of magnitude with virtually no extra programming
efforts.MinDoc
annotation and
without the "luxury" of the switchable
showing of application start time.PrintWriter
s log
and
out
(featuring the correct encoding even for the
Windows console / command shell),
log
and
out
) to (log) files (see
TeeWriter
),extends App
.HelloFrame4J
's)
source can be (and was very
often) the starting point for real world Java applications. This procedure
gave birth to server applications (based on Frame4J's predecessor) running
for years in uninterrupted 7d24h service.chcp 1250
set activeCodePage=Cp1250
HelloFrame4J
object are properties, controlling the
application's working mode. They may be (automatically) set by
Prop
.ComVar.Impl
Modifier and Type | Field and Description |
---|---|
String |
param1
The first normal (non -option) or word parameter.
|
boolean |
showDateTime
Show also date and time.
|
ano, appBase, appIO, appStartTime, appStartTimeMS, args, argsOrig, bgColor, err, fullClassName, help, icon, log, mainThread, myClass, myFrame, name, out, outMode, packName, prop, retCode, runFlag, shortClassName, title, verbose, verbosity
AUTHOR, BLANK_STRING, cons, CONSOL_ENCODING, COPYRIGHT, D, D_NaN, D_NegInf, D_PosInf, EMPTY_INT_A, EMPTY_STRING, FILE_ENCODING, FRW_CLLD, FS, FSS, H, hasCons, HOST_IP, HOST_IPv4, HOST_NAME, INIT_ERROR, JAR_ENCODING, JH, JOB_DONE_OK, JRL, LOG_OUT_ERROR, M, MAIN_THREAD_EXC, NO_BYTES, NO_CLASSES, NO_DOUBLES, NO_OBJECTS, NO_PARS_ERROR, NO_STRINGS, NOT_WINDOWS, ON_PI, ONE_DAY, ONE_HOUR, ONE_LEAP_YEAR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR, OS, PROG_NAME, PROG_SHORT, PS, RUNTIME, S, SHY, UD, UL, UL_UR_da, UR
ILLEGAL_TYPE, ILLEGAL_VALUE, NO_ATTRIBUTE, NO_KNOWN_ATTRIBUTE, NO_VALUE, OK, retVtext
Constructor and Description |
---|
HelloFrame4J() |
Modifier and Type | Method and Description |
---|---|
int |
doIt()
HelloFrame4J's working method.
|
static void |
main(String[] args)
HelloFrame4J's start method.
|
boolean |
parsePartial()
HelloFrame4J wants only partial parameter parsing by Prop.
|
actionPerformed, allowNoPropertiesFile, clientOrder, condHelpLog, connect, errMeld, errMeld, errorExit, errorExit, errorText, extraPropertiesFile, formMessage, formMessage, formMessage, getAbout, getAboutText, getActTime, getAppLogger, getAppStartTime, getArgs, getAuthor, getCopyright, getDbLogger, getExecTimeMs, getExecTimeMsL, getExecTimeString, getHelp, getHelpText, getIcon, getLanguage, getLogHandler, getMessageComponent, getMessageComponentsLength, getMyFrame, getName, getNameWithVersDate, getOutMode, getProp, getPurpose, getStartTime, getStateString, getTheCloser, getTitle, getUsage, getVerbose, getVerbosity, getVersDate, go, go, go, haveIcon, isDebug, isHelp, isHelpLog, isNormal, isRunFlag, isSilent, isTest, isVerbose, logVerbose, logVerbose, makeStatusTextEnd, makeStatusTextStart, messageFormat, normalExit, performeAction, queueAction, regAsStdMBean, repExc, setAboutText, setAttribute, setAttribute, setAuthor, setBgColor, setCodePages, setCopyright, setHelp, setLogOut2, setName, setOutMode, setOutMode, setPurpose, setTitle, setUsage, setVerbose, setVerbose, setVerbosity, setVerbosity, setVersDate, stop, threeLineEndMsg, toString, twoLineEndMsg, twoLineStartMsg, valueLang, valueLang, wakeMainThread
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
retVtext
public boolean showDateTime
public String param1
public final boolean parsePartial()
parsePartial
in class App
App.App(String[])
public static void main(String[] args)
App
directly or indirectly it just creates an object of its own
App
derived class and calls a suitable
go()
method.doIt()
.ComVar.INIT_ERROR
:
start or parameter evaluation problem.args
- the command line arguments
passed by the platform to the JVM (java.exe), here just forwardedpublic int doIt()
doIt
in class App
Prop
,
App.go(String[])
,
App.go(String[], String, CharSequence)
,
App.mainThread