window

S

Snide

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
 
A

Andrew Thompson

M

Matt Humphrey

| Snide wrote:
| ..
| >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/
 
S

Snide

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
 
L

Lew

Snide said:
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"?
 
R

Roedy Green

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.
 
K

Knute Johnson

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



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

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.
 
A

Andrew Thompson

Matt said:
| ..
| >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.

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.)
 
A

Andrew Thompson

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


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)?

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200711/1
 
S

Snide

What on earth do you mean? If there is no user,
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top