Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
72ea8769
Commit
72ea8769
authored
Jun 02, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start java operator locally
parent
375db67a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
0 deletions
+67
-0
java/jpwr/jop/src/JopOp.java
java/jpwr/jop/src/JopOp.java
+64
-0
src/exp/com/src/os_linux/jpwr_opwind.sh
src/exp/com/src/os_linux/jpwr_opwind.sh
+3
-0
No files found.
java/jpwr/jop/src/JopOp.java
0 → 100644
View file @
72ea8769
package
jpwr.jop
;
import
java.awt.*
;
import
java.io.*
;
import
javax.swing.*
;
import
jpwr.rt.*
;
public
class
JopOp
{
boolean
packFrame
=
false
;
//Construct the application
public
JopOp
()
{
JopOpWindowFrame
frame
=
new
JopOpWindowFrame
();
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if
(
packFrame
)
{
frame
.
pack
();
}
else
{
frame
.
validate
();
}
//Center the window
Dimension
screenSize
=
Toolkit
.
getDefaultToolkit
().
getScreenSize
();
Dimension
frameSize
=
frame
.
getSize
();
if
(
frameSize
.
height
>
screenSize
.
height
)
{
frameSize
.
height
=
screenSize
.
height
;
}
if
(
frameSize
.
width
>
screenSize
.
width
)
{
frameSize
.
width
=
screenSize
.
width
;
}
frame
.
setBounds
(
0
,
0
,
frameSize
.
width
,
screenSize
.
height
);
// frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
frame
.
setVisible
(
true
);
}
//Main method
public
static
void
main
(
String
[]
args
)
{
if
(
args
.
length
>
0
)
System
.
out
.
println
(
"Arg: "
+
args
[
0
]);
try
{
// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
UIManager
.
setLookAndFeel
(
UIManager
.
getCrossPlatformLookAndFeelClassName
());
// UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
new
JopOp
();
byte
[]
buff
=
new
byte
[
100
];
try
{
System
.
in
.
read
(
buff
);
}
catch
(
IOException
e
)
{}
}
}
src/exp/com/src/os_linux/jpwr_opwind.sh
0 → 100755
View file @
72ea8769
export
CLASSPATH
=
$pwr_lib
/pwr_rt.jar:
$pwr_lib
/pwr_jop.jar:
$pwr_lib
/pwr_jopc.jar:
$pwr_lib
/pwr_bcomp.jar:
$pwr_lib
/pwr_bcompfc.jar:
$pwr_lib
/pwr_abb.jar:
$pwrp_lib
/pwrp_
$pwrp_projectname
.jar
export
LD_LIBRARY_PATH
=
$pwr_exe
$jdk
/bin/java jpwr.jop.JopOp
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment