在Java桌面广告 [英] Ads in Java Desktop
问题描述
我是preparing部署一个游戏使用LIBGDX为Android和桌面计算机的开发。有没有办法把广告在桌面应用程序?我想生成从桌面广告收入了。
I'm preparing to deploy a game developed using LIBGDX for both android and Desktop computers. Is there a way to put ads in a desktop application? I'd like to generate revenue from the desktop ads too.
推荐答案
你必须要坚持一个浏览器窗口小部件在您的桌面应用程序和显示广告在那里。在JEditorPane的HTML支持是pretty的原始,不过,所以你必须要寻找一个嵌入Java的浏览器或JEditorPane的自定义子类,支持现代HTML(我想在HTML 3.2 JEditorPane中拥堵)。有一些免费的替代品只是一个谷歌搜索了。
You'd have to stick a browser widget in your desktop application and display adverts in there. JEditorPane's HTML support is pretty primitive, however, so you'd have to search for an embeddable Java browser or a custom subclass of JEditorPane which supports modern HTML (I think JEditorPane support stops at HTML 3.2). There are some freely available alternatives just a Google search away.
关闭我的头顶,我想不出面向桌面应用程序在所有的任何广告网络,因此浏览器的做法可能是在做你想要什么你唯一的实拍。
Off the top of my head, I can't think of any advertising networks geared towards desktop applications at all, so the browser approach is probably your only real shot at doing what you want.
这篇关于在Java桌面广告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!