12 Replies - 1316 Views - Last Post: 08 March 2013 - 10:06 AM

#1 pistolizedpete  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 02-December 08

Best language to use for a digital sign

Posted 07 March 2013 - 08:49 AM

I'm trying to write a simple program that will open a browser in full screen,
on a particular page and then end when the mouse is clicked or a key is pressed.

What would be the best language to use for this?

I've tried in java but I cant find a way to end the program at will, using Java.

Any help is greatly appreciated.
Is This A Good Question/Topic? 0
  • +

Replies To: Best language to use for a digital sign

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8367
  • View blog
  • Posts: 31,092
  • Joined: 12-June 08

Re: Best language to use for a digital sign

Posted 07 March 2013 - 08:53 AM

What, is this a screen saver of sorts?
Was This Post Helpful? 0
  • +
  • -

#3 pistolizedpete  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 02-December 08

Re: Best language to use for a digital sign

Posted 07 March 2013 - 08:57 AM

View Postmodi123_1, on 07 March 2013 - 08:53 AM, said:

What, is this a screen saver of sorts?


It will be used for advertising and the likes / displaying information in shops. So yes, in a way very similar except there will be live updates of information displayed.

This post has been edited by pistolizedpete: 07 March 2013 - 09:04 AM

Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8367
  • View blog
  • Posts: 31,092
  • Joined: 12-June 08

Re: Best language to use for a digital sign

Posted 07 March 2013 - 09:03 AM

Mkay. In the spirit of full exploration - have you just thought about the simple solution of F11? I mean that key (on IE, FF, Safari) all push a browser to full screen. This might be a case of using a sledgehammer for a wall tack.
Was This Post Helpful? 0
  • +
  • -

#5 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1291
  • View blog
  • Posts: 2,859
  • Joined: 30-January 11

Re: Best language to use for a digital sign

Posted 07 March 2013 - 09:03 AM

Do you have to open up a browser or you can you just display the webpage from within the program itself?
Was This Post Helpful? 0
  • +
  • -

#6 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5316
  • View blog
  • Posts: 11,355
  • Joined: 02-June 10

Re: Best language to use for a digital sign

Posted 07 March 2013 - 09:05 AM

Any language you like that can run on the OS you are using would be find for a simple app like this. All desktop OSes can open a browser, and recognize a mouse click or key press.

You probably just need to learn more about your chosen language. I'm sure java can tell the app to close. Its common to have a menu choice for File | Exit
Was This Post Helpful? 0
  • +
  • -

#7 pistolizedpete  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 02-December 08

Re: Best language to use for a digital sign

Posted 07 March 2013 - 09:14 AM

There are no real rules to how I'm supposed to do it but,
I would like it to work automatically after opening the program, ie. no F11 key press.

I could display the webpage from the program itself as long as it's full screen and there's
no borders / scroll wheels etc.

tlhIn`toq: It seems, you cant use a keyListener in Java to do this unless you have a gui.

Thanks for the replies so far guys.

So looking at all the answers, I suppose an equally useful question to me would be...is there a way that I can use a Jframe in fullscreen, with no borders etc? Then I could use a keyListener to kill it.
Was This Post Helpful? 0
  • +
  • -

#8 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1291
  • View blog
  • Posts: 2,859
  • Joined: 30-January 11

Re: Best language to use for a digital sign

Posted 07 March 2013 - 09:19 AM

To maximise a JFrame you can do (untested) -

frame.setExtendedState(Frame.MAXIMIZED_BOTH); 


and then to remove the title bar etc etc you can do

frame.setUndecorated(true);


Then just set your web browsing component to fill the entire frame and you should be good. As the application still has focus you can use keylisteners to toggle between full screen mode.

This post has been edited by Ryano121: 07 March 2013 - 09:19 AM

Was This Post Helpful? 0
  • +
  • -

#9 pistolizedpete  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 02-December 08

Re: Best language to use for a digital sign

Posted 07 March 2013 - 09:33 AM

Hmmm...

This would almost work but the Ubuntu Dashboard and
bar at the top of the screen are still visible.

This post has been edited by pistolizedpete: 07 March 2013 - 09:33 AM

Was This Post Helpful? 0
  • +
  • -

#10 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1291
  • View blog
  • Posts: 2,859
  • Joined: 30-January 11

Re: Best language to use for a digital sign

Posted 07 March 2013 - 10:04 AM

Apparently this should do the job

Full Screen Exclusive Mode
Was This Post Helpful? 0
  • +
  • -

#11 pistolizedpete  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 02-December 08

Re: Best language to use for a digital sign

Posted 08 March 2013 - 02:16 AM

View PostRyano121, on 07 March 2013 - 10:04 AM, said:

Apparently this should do the job

Full Screen Exclusive Mode



That's what Oracle say but nope :( Same problem, the dashboard and header bar are still visible.

There must be some way to start a window or browser in full screen and be able to exit it but I cant find how if there is :/
Was This Post Helpful? 0
  • +
  • -

#12 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8367
  • View blog
  • Posts: 31,092
  • Joined: 12-June 08

Re: Best language to use for a digital sign

Posted 08 March 2013 - 06:38 AM

Well yeah.. that looks like it is for a java app.. not a web browser manipulation. Sheesh.. at this point just use the webbrowser object in .NET.
Was This Post Helpful? 0
  • +
  • -

#13 pistolizedpete  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 65
  • Joined: 02-December 08

Re: Best language to use for a digital sign

Posted 08 March 2013 - 10:06 AM

Ok, so the reason I wanted to kill the process was because when opening chrome
in kiosk mode using java, there was no way to then exit the full screen, ie F11 doesnt work but,
hitting ctrl+w is just as effective for me so I'll go with that and yes I agree, I was probably
making a mountain out of a molehill but I just thought it would be simpler than it turned out
to exit on a key stroke.

Thanks for the help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1