Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

window

Thread view: 
Snide - 03 Nov 2007 10:37 GMT
Hello

I would like to open a window from a java application, to display a
HTML file or URL.
I know what awt.desktop can do, but the problem is that I need a
borderless window.

Is it possible to open a window whithout border nor menu bar ?
I considered using an undecorated Jframe, but then how to lauch a
browser inside this Jframe ?

Thanks for any help

Denis
Andrew Thompson - 03 Nov 2007 11:11 GMT
...
>I would like to open a window from a java application, to display a
>HTML file or URL. ..

Supplied by your site, or ripped off someone else's site?

>I know what awt.desktop can do, but the problem is that I need a
>borderless window.  ...

A more interesting question is, "What does the user need?".

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Matt Humphrey - 03 Nov 2007 13:59 GMT
| ..
| >I would like to open a window from a java application, to display a
| >HTML file or URL. ..
|
| Supplied by your site, or ripped off someone else's site?

That seems pretty harsh right off the top.  Is the OP a known spammer or
plagiarist?

To OP:
Window and JWindow are borderless, although I'm not familiar with running a
browser in a Java window.  You're talking about an application so there
should be some mechanism for it.  If it were an applet, however, it would
not be allowed without special permissions.

Matt Humphrey http://www.iviz.com/
Andrew Thompson - 04 Nov 2007 00:21 GMT
>| ..
>| >I would like to open a window from a java application, to display a
[quoted text clipped - 3 lines]
>
>That seems pretty harsh right off the top.  

Perhaps.  I preferred to think of it as 'direct', and
there was a technical point I was getting to.

JEditorPane is entirely suited to showing HTML
that is under the *direct control of the developer.*
This could apply to stuff coming off their own site
(presumably) or certainly to HTML that they specifically
supply with the app..

Another 'upside' to JEP in the situation the OP
outlined, is that the HTML does not even need to
be 'expanded' onto the local file system.

JEP can pull HTML (+ stylesheets and images etc.)
directly from Jar files.

[ OTOH - going the "rip off other people's sites" way -
- JEP is unsuited to that, the HTML quality is too unpredictable
- and trust..
 - untrusted applets cannot do it
 - an untrusted JWS app., *can* do it, but only with
the specific consent of the end-user. ]

>.. Is the OP a known spammer or plagiarist?

Should I care?  I did not accuse them of either.
(A question is a question, perhaps an implication -
but not an accusation.)

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Snide - 03 Nov 2007 14:26 GMT
> Supplied by your site, or ripped off someone else's site?

The files to be displayed (HTML and linked files like pictures) will
first be downloaded locally.

> A more interesting question is, "What does the user need?".

There is no "user". It is an embedded application with Windows CE, and
probably later Linux (hence java).
The need is what I explained : display some contents in windows. There
can be several windows, each displaying a different information.
Most content will be HTML, including possibly pictures, text, flash,
video stream or local mpeg.

Denis
Knute Johnson - 03 Nov 2007 17:34 GMT
>> Supplied by your site, or ripped off someone else's site?
>
[quoted text clipped - 11 lines]
>
> Denis

To display HTML with pictures and text should be no problem in a
JEditorPane inside a JWindow or borderless JFrame.  Flash, video and
mpeg I don't think can be displayed in a JEditorPane.  You are probably
going to need to produce your own display pages.  MPEG if it is using
even a slightly new codec will require some third party software.  JMF,
which is no longer supported, will do some old formats.  There are some
new video and audio things coming with version 7 but that is a way off
and it won't be complete until version 8 I understand.

It would be really nice to have a JComponent that would display MPEG
video or Flash.

Signature

Knute Johnson
email s/nospam/knute/

Andrew Thompson - 04 Nov 2007 00:30 GMT
>> Supplied by your site, or ripped off someone else's site?
>
[quoted text clipped - 4 lines]
>
>There is no "user".

What on earth do you mean?  If there is no user,
what is the point of having GUI controls, let alone
HTML on-screen?

>..It is an embedded application with Windows CE, and
>probably later Linux (hence java).
>The need is what I explained : display some contents in windows.

And what does the user get out of that?

If it is 'program help' you might look to JavaHelp*.

You seem to be being very secretive about the ultimate
point of this.  I think it is hampering the technical progress
of the thread.

* Note that it was only the second series of replies where
I (feel I) understand your use-case well enough to think of
'JavaHelp'.  Just how hard do you want to make it, for
people to help you achieve the goal (which is still unclear
to me)?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Snide - 04 Nov 2007 15:21 GMT
>>What on earth do you mean?  If there is no user,
>>what is the point of having GUI controls, let alone
>>HTML on-screen?

There are many possibilities for that.
Think of information screens, ads, etc, displayed on a screen, with a
content set up or renewed regularly, fetched from a distant dedicated
server.
There is no "user", with keyboard and mouse, just folks watching.
Since large screens can be used, several windows can display each a
different content. But only this content has to be visible, excluding
a Windows border with title and buttons.

Thanks anyway for all your answers.
I wonder if Java can do all that, and I consider using an other
language, close to the OS, and making it possible to open and control
completely a window.

Denis
Lew - 03 Nov 2007 15:41 GMT
> I considered using an undecorated Jframe, but then how to lauch a
> browser inside this Jframe ?

Did you mean "JFrame"?  If not, what is a "Jframe"?

Signature

Lew

Roedy Green - 03 Nov 2007 16:41 GMT
>I would like to open a window from a java application, to display a
>HTML file or URL.

Use a JWindow to get a plain frame.  Put a JTextArea or JEditorPane or
JTextPane inside it.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.