RocJ -A Java Client-

Java Swing Client
jeanmichel

Post by jeanmichel » 12.06.2010, 15:38

Hi Ronald,

thanks! I'll think about it ...

Rob: great!

BR
Jean-Michel

ron&bram
Posts: 2460
Joined: 11.06.2008, 19:34
Location: Heemskerk, Netherlands

Post by ron&bram » 13.06.2010, 20:20

"With a little help from my friends"

RocJ now also shows my own layout (thanks Rob). Version 68. The "holes" on the MID are decouplers.

@Rob: power on/off only switches the first command station.

Best regards, Ronald
You do not have the required permissions to view the files attached to this post.
Last edited by ron&bram on 13.06.2010, 21:23, edited 1 time in total.

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 13.06.2010, 20:53

Hi Ronald,

revision 75 should handle all shortcomings.

ron&bram
Posts: 2460
Joined: 11.06.2008, 19:34
Location: Heemskerk, Netherlands

Post by ron&bram » 13.06.2010, 21:29

Hi Rob,

Normally I would have updated before taking the picture and so on, but I found a drawback of the mid. The real layout is two floors and three solid concrete walls away from the router (whereas the test pc with the virtual command station is in the same room). The Rocrail laptop for the real layout barely manages to build up a connection to the router, the MID's wifi is just not strong enough. The laptop has two wifi cards, so I use a point to point connection between the Rocrail server and the MID, but the drawback is that the MID has no internet access when it is at the layout. That's why I used version 68. Nevertheless I am amazed about what you achieved in such a short time.
Are you planning on releasing the sources in Launchpad?

Best regards, Ronald

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 14.06.2010, 06:04

Hi Ronald,

the sources are available at LP:
http://wiki.rocrail.net/doku.php?id=rocj-dev-en

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 15.06.2010, 16:13

Revision 82 with Loco pics:

Image

The block pics are optional and must be activated by the option menu.

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 15.06.2010, 16:17

Also all defined loco functions are available:

Image

ron&bram
Posts: 2460
Joined: 11.06.2008, 19:34
Location: Heemskerk, Netherlands

Post by ron&bram » 15.06.2010, 20:10

RocJ 82 on the MID, in front of the laptop. Tiny remark: the decouplers are rotated 90 degrees. Big remark: I love the "show picture in block" option, really superb (Rocview wishlist??).

Best regards, Ronald
You do not have the required permissions to view the files attached to this post.

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 15.06.2010, 20:49

Hi Ronald,

the naming of the decoupler is corrected in 83.

Have fun. ;-)

mserrano
Posts: 85
Joined: 24.02.2008, 20:15
Location: Valencia (Spain)
Contact:

Post by mserrano » 16.06.2010, 19:10

Hi,

I have been trying to run rocj just for fun. I was assuming it should be able to run in any device with a java6 vm, but I keep getting an exception when trying to run it on ubuntu or windows (7 and xp). I have tried to run the server also in different machines (ubuntu and windows 7 and XP), and always with the same result.

I have the feeling I am missing something quite basic... but I don't know what :roll:

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Rocrail version: 1667
rocj version 85

And here is the output:

Code: Select all

RocJ
L&F: Metal
L&F: Nimbus
multicast send...
<netreq req="clientconn"/>
multicast receive...
<netreq req="clientconn"/>
multicast receive...
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at net.rocrail.rocj.dialogs.ConnectDlg.<init>(ConnectDlg.java:84)
        at net.rocrail.rocj.RocJ.ConnectDialog(RocJ.java:217)
        at net.rocrail.rocj.RocJ$1.run(RocJ.java:122)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Receive timed out
I get the windows but no connection dialogue... when I try to connect with the left button dialogue... I get a new exception

As I said, probably I am missing something basic... any help?
Thanks

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 16.06.2010, 20:05

Hi,

this happens when no rocj.ini is found.
I fixed it in rev. 85:

https://launchpad.net/rocrail/snapshot/snapshot/

mserrano
Posts: 85
Joined: 24.02.2008, 20:15
Location: Valencia (Spain)
Contact:

Post by mserrano » 16.06.2010, 20:28

Thanks :)

Really nice

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 17.06.2010, 06:23

mserrano wrote:Thanks :)

Really nice
Screenshot? :-)

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 18.06.2010, 16:02

Check revision 98 for the latest translations and a new added StatusBar:
https://launchpad.net/rocrail/snapshot/snapshot/

rjversluis
Site Admin
Posts: 42327
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Post by rjversluis » 18.06.2010, 17:27

Here a picture of RocJ with activated status bar:

Image

The symbols will disappear if they are no longer ON.

Symbols from left to right:
Power, Auto mode, Connected

Locked

Return to “RocJ (DISCONTINUED)”