This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Putting advertisement on desktop using java

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Is it possible to put static/dynamic html pages on a small portion of desktop using java?
Does Java provide some APIs which can be used specifically to do this?
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess JEditorPane is what you're looking for.


Regards,
Rok
 
Preet Prasannan.
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Rok.
But JeditorPane opens up a new pane where I can load a web page.This is what I can infer from my initial findings.Please correct me if there is more to it.
This can be a work around and I am looking into it.
But on a sidenote I shall also explain what I am trying to do.
What I intend to do is take control of the desktop.Move icons to one half of the desktop and display ads on the other half.
Can you suggest if this is doable using JAVA?
Any help would be appreciated.

Regards
Preet
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From what I understand you are doing like say 2 panels. You click the ad in 1 panel and that page or content displays in the other panel? If this is what you are trying to do then I think it's possible with Swing.

About the ad space... why not just use a banner image? Of course if it's dynamic then it most likely need to use JEditorPane. But then IMO you defeat your primary purpose of having 2 panes.
 
author and iconoclast
Posts: 24203
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think K. Tsang understands what you're asking.

No, there's nothing in the standard JDK to do this, but the JDIC contains a prototype "Wallpaper API" which might be of some help:

https://jdic.dev.java.net/incubator/misc/index.html

AFAIK there's no API for moving desktop icons around.
 
Sheriff
Posts: 26793
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Preet Prasannan. wrote:What I intend to do is take control of the desktop... Can you suggest if this is doable using JAVA?



No, it isn't.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic