473,320 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

A question about understanding

Hello!

I'm reading in a document about Window System and there is some about Java
that I want to ask you about because I don't realy understand what they
mean.
It says the following: "Java creates only partial window object of its own.
For full functionality, it relies on peer objects that are taken from
whatever toolkit happens to be available in the system the program runs.

What does it mean with "Java creates only partial window object of its own".
What does it mean with "it relies on peer objects that are taken from
whatever toolkit happens to be available in the system the program runs."

Assume you use java on MS windows what toolkit will java use then.?

//Tony
Jul 17 '05 #1
2 1558
SPG
Hi Tony,

From my limited knowledge I will assume this..

You will always write your GUI code using either the AWT or SWING toolkit
provided by the JAVA api. What I think is meant that how the windows are
created and displayed is based on the underlying model of the OS's GUI
implementation.

For example, If on a windows OS, then the SWING api would interact with the
MFCs of the windows toolkit..

Therefore, you need not worry about the OS based implementation, just the
SWING or AWT code. (Unless of course you are using PLAFs which is another
story!)

Steve

"Tony Johansson" <jo*****************@telia.com> wrote in message
news:np*********************@newsc.telia.net...
Hello!

I'm reading in a document about Window System and there is some about Java
that I want to ask you about because I don't realy understand what they
mean.
It says the following: "Java creates only partial window object of its
own. For full functionality, it relies on peer objects that are taken from
whatever toolkit happens to be available in the system the program runs.

What does it mean with "Java creates only partial window object of its
own".
What does it mean with "it relies on peer objects that are taken from
whatever toolkit happens to be available in the system the program runs."

Assume you use java on MS windows what toolkit will java use then.?

//Tony

Jul 17 '05 #2
Tony Johansson wrote:
Hello!

I'm reading in a document about Window System and there is some about Java
that I want to ask you about because I don't realy understand what they
mean.
It says the following: "Java creates only partial window object of its
own. For full functionality, it relies on peer objects that are taken from
whatever toolkit happens to be available in the system the program runs.

What does it mean with "Java creates only partial window object of its
own". What does it mean with "it relies on peer objects that are taken
from whatever toolkit happens to be available in the system the program
runs."

Assume you use java on MS windows what toolkit will java use then.?

//Tony


You may try to read this page from the awt tutorial.

http://www.science.uva.nl/ict/ossdoc...ents/peer.html

The basic idea is that Java is intended to be completely OS-independant, and
at the same time provide the same look as the other windowing toolkit
running on a particular platform. For that, java uses "adapter classes"
which are called peers.

It looks as you are new to these subjects, my advice is, when you don't
understand a particular point, don't block on it. Keep reading, trying to
understand at least the general idea of the article, and then come back on
the points that you didn't understand.

Have fun.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
8
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
5
by: eScrewDotCom | last post by:
www.eScrew.com eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is...
0
by: eScrewDotCom | last post by:
eScrew Welcome to eScrew! eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew story if you promise eScrew to consider eScrew story as joke. eScrew story is very funny. eScrew...
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
30
by: questions? | last post by:
say I have a structure which have an array inside. e.g. struct random_struct{ char name; int month; } if the array is not intialized by me, in a sense after I allocated a
8
by: readytoride39 | last post by:
I am curious where does C# fit in regarding C and C++? Is it an extension of standard C with just a fancy name to take into account ..NET or is more than that? I am a C programmer so I am curious...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.