开云体育

Date

Locked Installer splash screen (was Re: Looking for a brave soul to try a Windows installer)

 

At 12:02 PM -0700 6/28/02, Bob Jacobsen wrote:
At 10:09 AM -0700 6/28/02, Jerry Drews wrote:
>Also, when the installer
>splash screen opens, the program pauses until a key is struck or the mouse
is clicked with the cursor within the white area. We probably need a
"Strike any key to continue" message or a "Continue" button. Otherwise, it
>just seems to hang without any clue as to what action to take.
As to that first splash screen, I hope it's temporary. The installer
is built with a tool from MindVision. I've talked to them about
letting us use it for free. So far, they've agreed that use for
"occasional tests and demos" is OK, and I'm still hoping that they'll
allow me to use it for distributing free software. If they do, that
first splash screen goes away.
Mindvision agreed to let me use the installer tool without charge. I think that's a great thing for them to do. But in return they want to keep that first screen as advertising, which seems fair. They were happy to add a "click to continue line".

The new screen is in the installer I just uploaded.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


Locked 2nd try at Windows installer

 

I've made a second try at a Windows installer. If all goes well (hah!), this will be the distribution form for Windows from now on.

The installer can be downloaded from:



The changes include:

New icons from Robin Becker - thanks! It's starting to
look like a real program...

Fix of the null reference crash located by Alex Shepherd

Shortcut and program items now function properly

Improved check for Java being present; if it's not
found, quit installer and take user to the Java download
page

Preferences are now stored in "Windows standard location".
This is a mixed blessing; it's necessary to get the
uninstall and reinstall operations to work reliably, but
it means that you'll have to search around if you ever
need to find the preferences manually. And if you
upgrade your Windows version, you might have to re-enter
your DecoderPro preferences (probably the least of your
problems then, but still a pain)

Thanks in advance for trying this, I appreciate any comments, suggestions, etc.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


Locked Re: Looking for a brave soul to try a Windows install er

 

Dear Gentlemen, please, can we go from beginning?
I have XP and same problem.
How and what I need to install Java?
Do I have to know something or anything about Java, for install and
using JMRI?

Thanks in advance.

Best regards,
Aleksandar


Locked Re: Looking for a brave soul to try a Windows installer

Alex Shepherd
 

The installer currently adds it to the JVM that the "java" command
will invoke. It needs to be there because the program is started
using "java" or "javaw". The installer gets that info from the
registry, using the same keys that the "java" command uses.
Ok, that seems reasonable.

It's interesting that JBuilder apparently installed its own JVM.
I think this is only for the Windows install, but the UNIX installs assume
its already there.

I could add a prompt to the user to pick the JVM(s) should get the
comm stuff, but I'm concerned that's too confusing. I suspect that
J. Average User doesn't really want to worry about Java at all.
It didn't really occure to me that this is what happens. I usually have one
JDK/JRE in my path to ensure it works as I expect. However now that you
mention this, I bet that it has been using the reg setting and ignoring
what's in my path as the java.exe in c:\WINNT\wherever is found before the
others and then it does the reg lookup to know which JVM to load.

I just removed Java from my path and sure enough DP still works fine - you
learn something new each day...

These are both the same mistake. I should have set the desktop
shortcut and the program menu item to always start in the program
directory. Thanks for finding it.
Yeah, I removed DP, reinstalled DP from install file, set the Start in
directory and it worked fine.

We have just got JBuilder7 at work and it has the ability to build a
native
executable wrapper to lauch Java applications and it is supposed to be
able
to setup specific classpath and which JVM to use etc - haven't played
with
it yet but maybe I should...
That's probably a lot better than the .bat files that are used now.
Yes I will look closer at it. It looks to build executables for all
supported platforms ie it has check boxes for Linux and MacOS files as well
as Windows. It also looks like it includes all the JARs and everything in
the native executable as well, kinda sounds like a self extracting ZIP file.
If this is the case, I'm guessing that we could end up with just the native
executable and the XML files for an install. Time will tell...

Cheers

Alex


Locked Re: One brave sole

Al Silverstein
 

Jon,

I already own a LocoBuffer. I just never assembled it yet. I was under the impression that Decoder Pro worked with MS100 also. I guess I will have to take the time tomorrow to put together the LocoBuffer.

Al

----- Original Message -----
From: Jon Miller
To: jmriusers@...
Sent: Friday, June 28, 2002 11:26 PM
Subject: Re: [jmriusers] One brave sole


Al,
At the current time you need a LocoBuffer. Bob is still working on the
MS100 interface. Find out about it in the files section of the Loco_Net
Hackers group on Yahoo.
A lot of work for Bob to do and the ability to use the MS100 is on his
list. The LocoBuffer is really a better device anyway.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked Re: One brave sole

Jon Miller
 

Al,
At the current time you need a LocoBuffer. Bob is still working on the
MS100 interface. Find out about it in the files section of the Loco_Net
Hackers group on Yahoo.
A lot of work for Bob to do and the ability to use the MS100 is on his
list. The LocoBuffer is really a better device anyway.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked One brave sole

Al Silverstein
 

Bob,

I made my first attempt to using Decoder Pro. The attempt failed. Here are the steps I took.

I downloaded Java 2 plug in from the Sun site. It was version 1.4.0_01. I installed it on the same machine I am currently running Winlok 2.1e successfully from com1.

I downloaded Decoder Pro 0.9.3.3 and installed it on the very same machine.

I am currently using a MS100. My system is a Dell GX1, P600, 256MB Ram and plenty of HD space.

When I tried to launch DP I received the message "Failed to set the current baud rate for the MS100. Port is set to 9600baud. See readme file for more info. The baud rate is grayed out at 16600.

What did I do wrong.

Al


Locked Re: Looking for a brave soul to try a Windows install er

 

Bob,

As you must have suspected, my machines did not have the Java software
installed. I installed Java 1.4.0. When I type "java -version" I get:

__________________
D:\>java -version
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
_______________________

Having done this, I re-ran the install and it seemed to complete correctly.

When I clicked on the DecoderPro icon on the desktop, it blinks, but nothing
seems to happen.

If I execute "decoder pro" from within a command prompt defaulted to the
d:\program files\jmri folder, I get the user interface which looks
reasonable. I am not connected to my railroad now. The program interface
seems to work o.k. When I quit, the command prompt window contains:

_______________________-

C:\Program Files\JMRI>decoderpro

C:\Program Files\JMRI>java
-Djava.class.path=".;jmri.jar;lib\collections.jar;lib
\log4j.jar;lib\jdom-jdk11.jar;lib\crimson.jar;lib\comm.jar;$VFS"
apps.DecoderPro
.DecoderPro
java.lang.NullPointerException
at
jmri.jmrit.symbolicprog.CombinedLocoSelListPane.setDecoderSelectionFr
omLoco(CombinedLocoSelListPane.java:233)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane$3.actionPerformed(Combine
dLocoSelPane.java:135)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane.propertyChange(CombinedLo
coSelPane.java:247)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown
Source)
at jmri.jmrit.roster.Roster.firePropertyChange(Roster.java:290)
at jmri.jmrit.roster.Roster.removeEntry(Roster.java:82)
at
jmri.jmrit.symbolicprog.tabbedframe.PaneProgFrame.thisWindowClosing(P
aneProgFrame.java:344)
at
jmri.jmrit.symbolicprog.tabbedframe.PaneProgFrame$4.windowClosing(Pan
eProgFrame.java:234)
at java.awt.Window.processWindowEvent(Unknown Source)
at javax.swing.JFrame.processWindowEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)

C:\Program Files\JMRI>
_____________________________________

-----Original Message-----
From: Bob Jacobsen [mailto:Bob_Jacobsen@...]
Sent: Friday, June 28, 2002 12:02 PM
To: jmriusers@...
Subject: RE: [jmriusers] Looking for a brave soul to try a Windows
install er


At 10:09 AM -0700 6/28/02, Jerry Drews wrote:
I downloaded the file and tried it on Windows 98, 2K and XP Pro. All
failed
with the error message: . . . . .
Thanks for trying, sorry it didn't work. Yes, that's helpful.

Somehow the installer seems to have failed to find the Java version
you've got installed. That's the tricky bit, and I've probably not
made it robust enough.

Would you be willing to do a couple things for me?

First, could you look in "C:\Program Files\" to see if there's a
"Java" or "JavaSoft" folder in there? And if there is, what does it
contain?

It contains: D:\Program Files\Java\j2re1.4.0

Second, could you open a DOS window and type "java -version", then
tell me what it says?

D:\>java -version
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

Thanks!

As to that first splash screen, I hope it's temporary. The installer
is built with a tool from MindVision. I've talked to them about
letting us use it for free. So far, they've agreed that use for
"occasional tests and demos" is OK, and I'm still hoping that they'll
allow me to use it for distributing free software. If they do, that
first splash screen goes away.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to


Locked Re: icons

 

At 10:34 AM -0700 6/28/02, Robin Becker wrote:
If you send me a .bmp file that is around 32x32 I can try to make a simple
icon file.
At 11:28 AM -0700 6/28/02, Robin Becker wrote:
Let's see if
Bob had any artwork in mind first, if not I guess I'll make something simple
up.
It's so generous of you to think I might have some artistic ability!

Unfortunately, I really don't, and I hadn't thought beyond trying to shrink something like one of the logo images that Jim Wellman created:

(which is 160x135)

(which is 210x152)

There's also a small DCC logo (83x75) we could use at:



But those are all too large...

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


Locked Re: Looking for a brave soul to try a Windows install er

 

At 10:09 AM -0700 6/28/02, Jerry Drews wrote:
I downloaded the file and tried it on Windows 98, 2K and XP Pro. All failed
with the error message: 'Setup cannot write to the destination file
"\lib\javax.comm.properties".' Is there any preparation needed on the
computer before running the installation program? Also, when the installer
splash screen opens, the program pauses until a key is struck or the mouse
is clicked with the cursor within the white area. We probably need a
"Strike any key to continue" message or a "Continue" button. Otherwise, it
just seems to hang without any clue as to what action to take.

Hope this is helpful. I'll be watching for others' responses as well as
your comments.
Thanks for trying, sorry it didn't work. Yes, that's helpful.

Somehow the installer seems to have failed to find the Java version you've got installed. That's the tricky bit, and I've probably not made it robust enough.

Would you be willing to do a couple things for me?

First, could you look in "C:\Program Files\" to see if there's a "Java" or "JavaSoft" folder in there? And if there is, what does it contain?

Second, could you open a DOS window and type "java -version", then tell me what it says?

Thanks!

As to that first splash screen, I hope it's temporary. The installer is built with a tool from MindVision. I've talked to them about letting us use it for free. So far, they've agreed that use for "occasional tests and demos" is OK, and I'm still hoping that they'll allow me to use it for distributing free software. If they do, that first splash screen goes away.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


Locked Re: Looking for a brave soul to try a Windows installer

 

At 10:32 PM +1200 6/28/02, Alex Shepherd wrote:
Ok, I have installed onto Win2K
Thanks!

Seemed to install ok although I noted that the installer didn't ask which
JVM I wanted to use and stuck the comm.jar file into the JVM under
C:\JBuilder4\jvm Maybe there is a way/option to let the user choose which
JVM to put the comm stuff into
The installer currently adds it to the JVM that the "java" command will invoke. It needs to be there because the program is started using "java" or "javaw". The installer gets that info from the registry, using the same keys that the "java" command uses.

It's interesting that JBuilder apparently installed its own JVM.

I could add a prompt to the user to pick the JVM(s) should get the comm stuff, but I'm concerned that's too confusing. I suspect that J. Average User doesn't really want to worry about Java at all.


I had to modify the DecoderPro Menu Shortcut and specify a value for the
"Start In" directory to:

"C:\Program Files\JMRI"

I also had to modify the DecoderPro.bat file and change the classpath
definition from:

java -Djava.class.path=".;jmri.jar;lib\collections.jar;lib\log4j.jar;lib\jdo
m-jdk11.jar;lib\crimson.jar;lib\comm.jar;$VFS" apps.DecoderPro.DecoderPro

to

javaw -classpath
".;jmri.jar;lib\collections.jar;lib\log4j.jar;lib\jdom-jdk11.jar;lib\crimson
.jar;lib\comm.jar;$VFS" apps.DecoderPro.DecoderPro

as it was complaining about not finding the main class. Must be a MacOS /
Windows thing...
These are both the same mistake. I should have set the desktop shortcut and the program menu item to always start in the program directory. Thanks for finding it.

We have just got JBuilder7 at work and it has the ability to build a native
executable wrapper to lauch Java applications and it is supposed to be able
to setup specific classpath and which JVM to use etc - haven't played with
it yet but maybe I should...
That's probably a lot better than the .bat files that are used now.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


Locked icons

Robin Becker
 

Jon,

You are right, there are lots of shareware and inexpensive commercial
programs for handling icons. They let you do nice things, like have
transparent areas (i.e. non-rectangular appearance), etc. Let's see if
Bob had any artwork in mind first, if not I guess I'll make something simple
up. Then we can see if the simple program I already have will be good
enough for now. If not then after that I'll check out some of the tools
available for download.

Robin

-----Original Message-----
From: Jon Miller [mailto:atsf@...]
Sent: Friday, June 28, 2002 11:03 AM
To: jmriusers@...
Subject: Re: [jmriusers] Looking for a brave soul to try a Windows installer


Robin,
Before I retired I had a program on the computer at work that made
icons. Can't remember the name of it. Real simple program but as it was
some time ago it was probably 16 color also.
Download.com has all sorts of icon creators, like 121 programs. I
would
try but am not an artist so not sure how they would turn out. Looks like
some do a picture capture and create an icon out of it.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Locked Re: Looking for a brave soul to try a Windows installer

Jon Miller
 

Robin,
Before I retired I had a program on the computer at work that made
icons. Can't remember the name of it. Real simple program but as it was
some time ago it was probably 16 color also.
Download.com has all sorts of icon creators, like 121 programs. I would
try but am not an artist so not sure how they would turn out. Looks like
some do a picture capture and create an icon out of it.

Jon Miller
AT&SF
For me time has stopped in 1941
Digitrax DCC owner, Chief system
NMRA Life member #2623
Member SFRH&MS


Locked Re: Looking for a brave soul to try a Windows installer

Robin Becker
 

Bob,

I have a simple program that will create a Windows ico file with a set of
icons in different resolutions / color depths. Unfortunately it is old and
will only do up to 16 colors so I can't make the 256 color icons that are
used now. Some of the basic icon format are:

16x16 16 color (small)
32x32 16 color (large)
32x32 2 color (does any have a monochrome display anymore?)
32x16 2 color (old CGA format?)

48x48 256 color seems to be common now but as mentioned I can't make this
one.

The developer supports the icon sizes in the file that they feel like.
Windows is supposed to figure out which one to use. For starters just
"small" and "large" will be more than enough I think.

If you send me a .bmp file that is around 32x32 I can try to make a simple
icon file.

Robin

-----Original Message-----
From: Bob Jacobsen [mailto:Bob_Jacobsen@...]
Sent: Friday, June 28, 2002 12:10 AM
To: jmriusers@...
Subject: [jmriusers] Looking for a brave soul to try a Windows installer


I've created a first version of a Windows installer. I'd like to have
somebody try it and tell me how to make it better.

Also, does anybody know how to make a "Windows icon file"? If I can
get one of those, the installer can set the various icons to
something less generic.


Locked Re: Looking for a brave soul to try a Windows install er

 

Bob,

I downloaded the file and tried it on Windows 98, 2K and XP Pro. All failed
with the error message: 'Setup cannot write to the destination file
"\lib\javax.comm.properties".' Is there any preparation needed on the
computer before running the installation program? Also, when the installer
splash screen opens, the program pauses until a key is struck or the mouse
is clicked with the cursor within the white area. We probably need a
"Strike any key to continue" message or a "Continue" button. Otherwise, it
just seems to hang without any clue as to what action to take.

Hope this is helpful. I'll be watching for others' responses as well as
your comments.

Jerry Drews


---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
jmriusers-unsubscribe@...



Your use of Yahoo! Groups is subject to


Locked Re: Looking for a brave soul to try a Windows installer

Alex Shepherd
 

Ok, I have installed onto Win2K

Seemed to install ok although I noted that the installer didn't ask which
JVM I wanted to use and stuck the comm.jar file into the JVM under
C:\JBuilder4\jvm Maybe there is a way/option to let the user choose which
JVM to put the comm stuff into

I had to modify the DecoderPro Menu Shortcut and specify a value for the
"Start In" directory to:

"C:\Program Files\JMRI"

I also had to modify the DecoderPro.bat file and change the classpath
definition from:

java -Djava.class.path=".;jmri.jar;lib\collections.jar;lib\log4j.jar;lib\jdo
m-jdk11.jar;lib\crimson.jar;lib\comm.jar;$VFS" apps.DecoderPro.DecoderPro

to

javaw -classpath
".;jmri.jar;lib\collections.jar;lib\log4j.jar;lib\jdom-jdk11.jar;lib\crimson
.jar;lib\comm.jar;$VFS" apps.DecoderPro.DecoderPro

as it was complaining about not finding the main class. Must be a MacOS /
Windows thing...

We have just got JBuilder7 at work and it has the ability to build a native
executable wrapper to lauch Java applications and it is supposed to be able
to setup specific classpath and which JVM to use etc - haven't played with
it yet but maybe I should...

Cheers

Alex


Locked Re: new decoder selection list boxes

Alex Shepherd
 

I shortened the list to just manufacturers that have one or more
decoders defined. That does make it cleaner, thanks. A manufacturer
will also show up if one of their decoder is seen when doing an
identify, just so it's clear what was seen by the programmer; in that
case there's still no decoder name shown though.
This is the first time I have tried this for a while so I haven't seen all
the intermediate versions but I like this a lot more that what we had
before. I think it is good.

I guess the smoke is still comming off this version, but after I first went
in, created a new roster entry, read all the CVs from one of my locos
values, saved the config and then tried to reload by selecting the roster
entry at the top of the screen, it throws a NullPointerExecption at this
line in CombinedLocoSelListPane:

String modelString = locoEntry.getDecoderModel();

Here is the stack trace

Exception occurred during event dispatching:
java.lang.NullPointerException
at
jmri.jmrit.symbolicprog.CombinedLocoSelListPane.setDecoderSelectionFromLoco(
CombinedLocoSelListPane.java:233)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane$3.actionPerformed(CombinedLocoSe
lPane.java:135)
at javax.swing.JComboBox.fireActionEvent(JComboBox.java:870)
at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:894)
at javax.swing.JComboBox.contentsChanged(JComboBox.java:950)
at javax.swing.JComboBox.intervalRemoved(JComboBox.java:1017)
at
javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:137
)
at
javax.swing.DefaultComboBoxModel.removeAllElements(DefaultComboBoxModel.java
:167)
at javax.swing.JComboBox.removeAllItems(JComboBox.java:568)
at jmri.jmrit.roster.Roster.updateComboBox(Roster.java:107)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane.propertyChange(CombinedLocoSelPa
ne.java:245)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.ja
va:152)
at jmri.jmrit.roster.Roster.firePropertyChange(Roster.java:290)
at jmri.jmrit.roster.Roster.addEntry(Roster.java:70)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane.openNewLoco(CombinedLocoSelPane.
java:403)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane.openButton(CombinedLocoSelPane.j
ava:362)
at
jmri.jmrit.symbolicprog.CombinedLocoSelPane$5.actionPerformed(CombinedLocoSe
lPane.java:175)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1504)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3
78)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
.java:216)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
at java.awt.Component.processMouseEvent(Component.java:3715)
at java.awt.Component.processEvent(Component.java:3544)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:926)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

It seems that there is a problem with either

locoBox.getSelectedIndex()
or
locoBox.getSelectedItem()

in CombinedLocoSelPane around line 133

IMHO I think the whole roster thing is overkill and has added a level of
complexity that we could do without right now. I would be happier with just
saving a locos config to discrete files with the decoder address as the
filename and pop-up a file Load/Save dialog box that would let me choose
subdirectories etc so I can manage where things end up.

Anyway no matter how this stuff works - this is way better than fumbling
with the manual and my DT400 while doing hex conversions in my head... even
if I don't save anything to rosters etc and load it all from scratch out of
the loco...

Cheers

Alex


Locked Re: Looking for a brave soul to try a Windows installer

Alex Shepherd
 

I'm downloading it now...

Alex


Locked Looking for a brave soul to try a Windows installer

 

I've created a first version of a Windows installer. I'd like to have somebody try it and tell me how to make it better.

Also, does anybody know how to make a "Windows icon file"? If I can get one of those, the installer can set the various icons to something less generic.

The installer can be downloaded from:



As you can see from the name, this is a new version. Testing is not complete (the installer is really meant to test the _installer_, not the new version). It has the updated decoder selection GUI of the 9.3 test version, with only a little additional tuning. The Lenz LI100 support seems to be working, though, and there are a couple of other minor improvements.

Because this is a test version, it will install "alongside" any existing install you've got. This means that you'll have to set it's preferences, etc, but on the other hand you won't lose your locomotive roster and settings if the installer doesn't work.

Thanks in advance, I appreciate the feedback.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.


Locked Re: new decoder selection list boxes

 

Sorry for the slow reply, it's been a busy week. Also, I've rearranged the paragraphs below so the reply makes more sense, and coincidentally to put the good news first.

At 3:30 PM -0700 6/19/02, Robin Becker wrote:
Bob,

Tried out 0-9-3-2 today. Sorry if these comments seem overly critical, and
of course they are just one person's opinion.
No problem. I _like_ getting feedback like this, and wish there was more of it.


Ok. First I think the programmer display is too busy now. Could the
Manufacturer name list be converted to a combo box? That might help. The
mfr list is quite long, but many don't have any decoders available. Perhaps
suppressing those would make it easier to get through the list. In any
case, I would suggest making the mfr default to the one that was selected
the last time the programmer was used would be a good thing.
I shortened the list to just manufacturers that have one or more decoders defined. That does make it cleaner, thanks. A manufacturer will also show up if one of their decoder is seen when doing an identify, just so it's clear what was seen by the programmer; in that case there's still no decoder name shown though.

Making it default is a good idea, I'll try to do that.

I tried to switch back to a combobox (selection box) for the manufacturer, but with the decoders in a list it looks really ugly. But that got me thinking of another approach, see below.

Would it be possible to update the mfr and decoder list selections when the
user selects an item from the "Use locomotive settings for" combo box? This
would be a handy way of checking roster entries to see what decoder types
were used.
Great idea! I did that.

The mfr name list was scrambled when I first ran the update. After
reindexing it appeared in alphabetical order.
Right, that's due to the auto-index-on-update feature that's still missing. I've got to get to that pretty soon...

I was able to open more than one programmer setup window at the same time.
Hadn't noticed this before. Wouldn't think you would want this for
programming track use. If Ops mode programming gets supported this might be
good, but you would probably want to supress programming of the loco ID in
this case?
This is just laziness on my part. I was putting off fixing this until I had ops mode programming working, but it's not yet ready yet. The idea was that you could open as many ops-mode windows as you want, but only one that used the programming track. I'd prefer to not fix it now, as I'd rather fix it as part of reworking the first screen to include an ops-mode button. OK?

It looks like the decoder family names show up in the decoder list. I found
this very confusing. This might be ok if there was a way to see that there
were two distinct types of items in the list - family names and decoder
names. For example indenting, bolding, or something else might make it
more apparent, especially if the app would prevent the user from selecting a
family name (but I fear that would not be easy to implement). I was able to
open a programmer with a family name selected, but the config did not match
any of the members of that family for the Throttle-Up decoders I checked.
(maybe this is really a problem in the throttle-up decoder files I made?)

In the case where there is only one decoder in the family it was especially
confusing since it seemed unclear which name to select. For example, under
Throttle-Up there is "Soundtraxx DSD Diesel decoders" on one line followed
by "DSD Diesel" on the next line. Maybe changing the word "decoders" to
"family" would help, but I don't think that will be enough to eliminate all
confusion. (Selecting the DSD diesel family name produces a programmer with
only 4 columns in the function map, while selecting the DSD diesel decoder
name produces the correct function mapping with 12 columns.)
All of these points are correct, and important.

When I was working on this interface, I was mostly concentrating on the case of Digitrax and Lenz decoders (which I have). They have a large number of defined decoders in a couple of families. For them, the interface seems to work OK. You select "Digitrax", and get a pretty long list, and just look for your decoder; you can ignore the family names. But people tend to refer to decoders as "FX decoders", so if that's what you think you've got, you can select that family and it also works. And when you push "ident", it shows you a nice list of the possible specific models within the family that was identified by CV7.

Unfortunately, it seems that this breaks down for Soundtraxx. They've done a better job of identifying specific _decoders_ with CV7, so there's less of a need for the "family" idea. And the list of all Soundtraxx decoders you get when you select the manufacturer is _really_ hard to read because of that.

I started to think of a way to use indenting to make all this clearer, but it soon occurred to me that I was recreating a "tree" structure.

So let me ask the accumulated wisdom on the list: Would a tree GUI work better?

The idea would be to have a single part of the selection window (probably with scroll bars) that shows a tree ala the various "Explorer" things. The tree would have three levels: Manufacturer, with family below that, and decoder below that. For cases like Soundtraxx DSD Diesel, where there's no clear distinction between family and model, just the model would appear directly under the manfacturer name.

At first, just the list of manufacturers would appear. You could click on one to open it, and see all the families and decoders. Selecting a decoder or family would let you push the open-programmer button. Only one could be selected at a time.

If you use the ident button, the tree would be closed-up except for the part of it that satisfies the identify results. If that's a specific decoder, that'll be open and selected. If a family was identified (e.g. Digitrax FX), the tree will be open to them, with the general family selected, and all the individual decoders visible. If the model (CV7) wasn't recognized, all the decoders for that manufacturer will be unfolded. Etc.

The only thing that I can think of that this would make _more_ difficult is "I've got a DH142 decoder, and I can't remember which manufacturer made it"; in that case, the user would have to open all the manufacturer names to look for it. (I could start with everything open in the tree, but that's really annoying to people who're looking for a specific thing). And in that case, clicking ident will go to the right place anyway.

This has the other advantage of being easy to code.

What do people think? Should I code it up so people can try it?

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
Am working off a huge email backlog, call if it's urgent.