[Tn5250j-general] New release TN5250j 0.6.3 available

2011-05-25 Thread Martin W. Kirst
Hey there,

first I want to thank everyone, who downloaded the 0.6.2 release.
Especially thanks for the feedback.
Since Dec-2010 we've counted round about 4000 downloads - Great!

Now, I'm proud to release v0.6.3.

Enhancements/Change Log for Tn5250j:

ADD: center connect dialog on top of main frame/window
FIX: bug id:3292459 (Reload macros file on launch)
FIX: bug id:3205299 (email addresses prefixed with "mailto:"; are not
considered as hotspots)
FIX: bug id:3179868 (Text and fields are not displayed)
FIX: bug id:3161636 (System Name not in window title bar anymore)
FIX: bug id:3160345 (Default value of column separator looks strange)
FIX: bug id:3158911 (command line switch -s not working any more)
FIX: bug id:3158902 (settings folder in user's home directory is not
created)
FIX: bug id:3155293 (hangs when called with explicit host name)


Special additions for JSE6 version:

ADD: About dialog/tab
ADD: tool tips for session tab titles
FIX: wrong display of title text, when tab title changes
FIX: unchecked confirmTabClose in properties
FIX: reworked internal code for debugging
CHG: removed old images


Regards
 Martin



signature.asc
Description: OpenPGP digital signature
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] -s option currently ignores -t option

2011-05-25 Thread Martin W. Kirst
Hi,

sorry, it took a while ...
It's fixed and committed now - there was a mistake, when setting the
tab's title name.

Regards
 Martin

Am 02.03.2011 01:09, schrieb Ken McWilliams:
> Hello list,
> 
> The new build 0.6.2 looks great! It looks like it does everything I need
> except to launch multiple tabs at once. It is a bit troublesome if a
> user goes to:
> 
> connections > options > selects "Startup with last view" 
> Which is fixable by editing a configuration file...
> 
> Just downloaded and built /tn5250j/trunk/tn5250j/ and I can see that the
> issue has been resolved but now the -t option is not respected.  I can
> clearly see that the sessions are loaded as per the -t flag (use system
> name rather than host/ip address) but then each tab quickly changes to
> the host/ip address.
> 
> If I omit the -t flag then the tabs are loaded with the host/ip address
> as expected.
> 
> Is there a way I can resolve this? 
> 
> 
> 
> --
> Free Software Download: Index, Search & Analyze Logs and other IT data in 
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business 
> insights. http://p.sf.net/sfu/splunk-dev2dev 
> ___
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> 




signature.asc
Description: OpenPGP digital signature
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Calling System.exit()

2011-05-25 Thread Martin W. Kirst
Hi,

you're right, the class My5250 uses a few System.exit() calls.

This is a little source snippet, which you may use to bootstrap 5250j
yourself ... this way you're avoiding to use My5250j and it's exit() calls.

---
import java.awt.BorderLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
import java.util.Properties;

import javax.swing.JFrame;
import javax.swing.JPanel;

import org.tn5250j.Session5250;
import org.tn5250j.SessionBean;
import org.tn5250j.SessionConfig;
import org.tn5250j.SessionGUI;
import org.tn5250j.interfaces.ConfigureFactory;


public class ExampleEmbeddedMinimalBootstrap {

public static void main(String[] args) {

try {
System.setProperty("emulator.settingsDirectory",
File.createTempFile("tn5250j", "settings").getAbsolutePath());
ConfigureFactory.getInstance();
org.tn5250j.tools.LangTool.init();
final SessionBean sb = createSessionbean();

JFrame frame = new JFrame("TN5250j");
frame.setSize(1024, 768);
frame.addWindowListener(
new WindowAdapter() {
public void 
windowClosing(WindowEvent e) {
sb.signoff();
sb.disconnect();
}
}
);

SessionGUI sessgui = new SessionGUI(sb.getSession());
JPanel main = new JPanel(new BorderLayout());
main.add(sessgui,BorderLayout.CENTER);
frame.setContentPane(main);
frame.setVisible(true);
sb.connect();

} catch(Exception e) {
e.printStackTrace();
}
}

private static SessionBean createSessionbean() throws Exception {

String system = "127.0.0.1"; // TODO: your IP/hostname

SessionBean sessionBean = null;
SessionConfig config = new SessionConfig(system,system);
config.setProperty("font", "Lucida Sans Typewriter Regular"); //
example config

Session5250 session = new Session5250(new
Properties(),system,system,config);

sessionBean = new SessionBean(session);

sessionBean.setHostName(system);
sessionBean.setCodePage("Cp273");
sessionBean.setNoSaveConfigFile();
sessionBean.setScreenSize("27x132");
sessionBean.setDeviceName("devname");

return sessionBean;
}

}
---

Regards
 Martin

Am 25.05.2011 15:02, schrieb Arpe, Kevin C:
> Hi,
> 
> I noticed in your code you call System.exit() in a few places.
> Example: org.tn5250j.My5250.main()
> 
> This makes it difficult to call this method from other Java code.
> 
> Is there a recommended way to spawn new connections using the same virtual 
> machine?
> Example: I want to spawn your app from another app.
> 
> On idea, is call java.exe externally and pass the JAR name.
> But I would rather call into your JAR directly -- same virtual machine (VM).
> 
> When I use a basic threading design, it won't work because System.exit() 
> terminates the VM.
> However, I built a very basic SecurityManager to trap calls to System.exit().
> [Source: 
> http://stackoverflow.com/questions/309396/java-how-to-test-methods-that-call-system-exit]
> Now my solution works... but it is a slight hack.
> 
> Can you please provide the correct API calls... or remove System.exit() from 
> your code?
> 
> We are big fans here.  Keep up the good work.
> 
> Please advise.
> Thanks,
> Arpe
> 
> 
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.  
> 
> 
> 
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1
> 
> 
> 
> ___
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/list

Re: [Tn5250j-general] TN5250j

2011-05-25 Thread Martin W. Kirst

Hi Roger,

in simple words, this sounds like the tn5250j-Bugs-3158902.
There are two options for you:
 1. download the TN5250j package with dependencies included - this
should work
 2. check out the SVN sources, compile yourself - this will work

In the next release (I'm planning soon) this will be fixed.

Regards
 Martin

Am 24.05.2011 22:45, schrieb Roger Mullenger:
> TN5250J is excellent but have one issue regarding windows 7.
> 
> As reported elsewhere the connections do not get saved although they did 
> when using XP.
> Not being a Java / Python expert I do not understand the solutions 
> provided.  Can this be documented in a clearer way?
> 
> many thanks
> Roger Mullenger
> Mobile +44 7887 925678 
> MPBA 
> This message (and any files transmitted with it) is intended for the use 
> of the addressees only. It may contain information and/or copyright 
> material that is private and confidential. If you are not the intended 
> recipient, please do not read, distribute, copy or otherwise use this 
> communication but delete it from your system and contact the sender as 
> soon as possible . 
> We can be contacted at -> cont...@mpba.co.uk or +44 (0) 1444 243282 or 
> fax +44 (0) 845 8622119. 
> Please note that the views expressed in this email may be solely those of 
> the author and not necessarily those of MPBA Ltd. 
> Although MPBA Ltd has taken all reasonable precautions to ensure no 
> viruses are present in this email, we cannot accept responsibility for any 
> loss or damage arising from the use of this email or attachments. 
> MPBA Ltd is registered in England and Wales, registration number 4389977. 
> Registered address: Antrobus House, 18 College Street, Petersfield, GU31 
> 4AD
> 
> 
> 
> --
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1
> 
> 
> 
> ___
> Tn5250j-general mailing list
> Tn5250j-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general




signature.asc
Description: OpenPGP digital signature
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


[Tn5250j-general] Calling System.exit()

2011-05-25 Thread Arpe, Kevin C
Hi,

I noticed in your code you call System.exit() in a few places.
Example: org.tn5250j.My5250.main()

This makes it difficult to call this method from other Java code.

Is there a recommended way to spawn new connections using the same virtual 
machine?
Example: I want to spawn your app from another app.

On idea, is call java.exe externally and pass the JAR name.
But I would rather call into your JAR directly -- same virtual machine (VM).

When I use a basic threading design, it won't work because System.exit() 
terminates the VM.
However, I built a very basic SecurityManager to trap calls to System.exit().
[Source: 
http://stackoverflow.com/questions/309396/java-how-to-test-methods-that-call-system-exit]
Now my solution works... but it is a slight hack.

Can you please provide the correct API calls... or remove System.exit() from 
your code?

We are big fans here.  Keep up the good work.

Please advise.
Thanks,
Arpe


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  --
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Fw: TN5250j - saving connections Win 7 (resent)

2011-05-25 Thread Patrick Bielen
Hi Roger,

2011/5/24 Roger Mullenger 

> TN5250J is excellent but have one issue regarding windows 7.
>

Strange, as i run it from windows 7 without any problems.

>
> As reported elsewhere the connections do not get saved although they did
> when using XP.
>

No problems whatsoever here.


> Not being a Java / Python expert I do not understand the solutions
> provided.  Can this be documented in a clearer way?
>

Well the connections are saved into the user area, nothing exiting about
that.

Try to run tn5250j from the console ...
C:\tn5250j>java -jar tn5250j.jar

And look at the output in the console to find out what could be wrong.

Best Regards,

Patrick
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1___
Tn5250j-general mailing list
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general