Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2447

Re: [follow] issue with j

From "Pseudo Silk Kimono" <pseudo.silk.kimono@THRWHITE.remove-dii-this>
Subject Re: [follow] issue with j
Message-ID <fcehhs$tmh$1@registered.motzarella.org> (permalink)
Newsgroups comp.lang.java.gui
References <stevewjackson-3B6928.12274114092007@individual.net>
Date 2011-04-27 15:39 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On 2007-09-14, Steve W. Jackson <stevewjackson@knology.net> wrote:
> In article <fcedg0$fn3$1@registered.motzarella.org>,
>  Pseudo Silk Kimono <Pseudo_Silk_Kimono@marillion.com> wrote:
>
>> I have deployed my Java GUI to our local intranet and it does start up
>> as expected by kicking off Java Web Start.  However, when I press a
>> button on the GUI, I expect to see a webpage, but nothing happens.
>> The same GUI runs fine, with the expected results when I run it from the
>> command line using java -jar.
>> 
>> What should I start looking at to determine why my buttons are not
>> opening up web pages.
>
> Um...the code behind their action listeners?

private void JButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
// TODO add your handling code here:
         invokeBrowser("cmd /C start http://www.google.ca/");
    } 


private void invokeBrowser(String commandString) {
   try {
         Runtime.getRuntime().exec(commandString);
     } catch (IOException ex) {
         ex.printStackTrace();
     }
 } 
-- 
PSK - RLU 452647 http://improve-usenet.org
Killing GG and Supernews now on Ubuntu, Vista and XP 
http://www.grc.com/stevegibson.htm

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[follow] issue with jws "Pseudo Silk Kimono" <pseudo.silk.kimono@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
  Re: [follow] issue with j "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
    Re: [follow] issue with j "Pseudo Silk Kimono" <pseudo.silk.kimono@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
      Re: [follow] issue with j "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
      Re: [follow] issue with j "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
        Re: [follow] issue with j "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
      Re: [follow] issue with j "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000
  Re: [follow] issue with j "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:39 +0000

csiph-web