Rich client programming plugging into the NetBeans Platform 1. print Edition Tulach - Read the ebook online or download it to own the full content
Rich client programming plugging into the NetBeans Platform 1. print Edition Tulach - Read the ebook online or download it to own the full content
https://ebookultra.com/download/pro-netbeans-ide-6-rich-client-
platform-edition-adam-myatt/
https://ebookultra.com/download/the-definitive-guide-to-netbeans-
platform-1st-edition-heiko-bock/
https://ebookultra.com/download/the-definitive-guide-to-netbeans-
platform-1st-edition-heiko-bock-auth/
https://ebookultra.com/download/programming-wireless-devices-with-the-
java-2-platform-2nd-edition-roger-riggs/
History in the Vernacular 1. paperback print. Edition
Raziuddin Aquil
https://ebookultra.com/download/history-in-the-vernacular-1-paperback-
print-edition-raziuddin-aquil/
https://ebookultra.com/download/netbeans-the-definitive-guide-1st-
edition-tim-boudreau/
https://ebookultra.com/download/the-client-first-edition-john-grisham/
https://ebookultra.com/download/20-recipes-for-programming-phonegap-
cross-platform-mobile-development-for-android-and-iphone-1st-edition-
munro/
https://ebookultra.com/download/philosophy-and-german-
literature-1700-1990-1-pbk-print-edition-saul/
Rich client programming plugging into the NetBeans
Platform 1. print Edition Tulach Digital Instant
Download
Author(s): Tulach, Jaroslav; Boudreau, Tim; Wielenga, Geertjan
ISBN(s): 9780132354806, 0132354802
Edition: 1. print
File Details: PDF, 5.69 MB
Year: 2007
Language: english
Rich Client Programming
This page intentionally left blank
Rich Client Programming
Plugging into the NetBeans Platform TM
Tim Boudreau
Jaroslav Tulach
Geertjan Wielenga
If you have difficulty registering on Safari Bookshelf or accessing the online edition, please e-mail
[email protected].
Preface xix
Acknowledgments xxxi
v
vi Contents
2.2.1 Versioning 13
2.2.2 Secondary Versioning Information 14
2.2.3 Dependency Management 15
2.3 A Modular Programming Manifesto 15
2.4 Using NetBeans to Do Modular Programming 19
Index 583
Foreword
by Jonathan Schwartz
xv
xvi Foreword
To that end, there is no product at Sun that better represents the future
we envision than NetBeans. And on behalf of Sun, as just one member among
many in the community now chartered with its evolution, and as one among
many in the corporate user communities, I can say without reservation that
it’s a thrilling future indeed.
Jonathan Schwartz
Chief Executive Officer and President of Sun Microsystems, Inc.
blogs.sun.com/jonathan
Foreword
by Jan Chalupa
I started using NetBeans Developer 2.0 in the late 1990s, but I didn’t care about
its internals until I joined Sun and the NetBeans team in 2000 to work on
NetBeans 3.0. I was coming from the world of Win 32 APIs, MFC, and COM,
was moderately familiar with Java libraries and Swing, read the “Gang of Four”
bible and all kinds of other books on design patterns and object-oriented
programming. In many aspects, what I found in the NetBeans APIs didn’t re-
semble anything I was used to. “What kind of pattern is this Cookie thing?”
I wondered. “Why is the class that represents a simple view or window called
TopComponent?” “What is the difference among FileObjects, DataObjects,
and Nodes?” “SplittedPanel? Doesn’t sound like correct grammar to me.”
And surprisingly, despite the prevalent code hacking and antiauthority culture
inherent to the NetBeans core team, almost everything in NetBeans was
accessible through a singleton class called TopManager.
However, soon I started to find out that no matter how weird some of the
names or concepts could seem, NetBeans was architected with reusability and
extensibility in mind and allowed developers to add new features easily—or
even build their own applications by reusing NetBeans core classes as a
framework. I came to realize that NetBeans wasn’t just an IDE, but also a very
powerful concept that could save application developers years of development
time. NetBeans was a platform.
xvii
xviii Foreword
I also figured out why some of the building blocks looked unfamiliar and
a little awkward at first glance. NetBeans started as a students’ project in the
mid-nineties. Most of the developers, including the architects, were university
students or fresh graduates with very little experience in software design. They
worked extremely hard while learning on the fly. Sometimes inventing the
wheel, sometimes introducing new names for existing things, and sometimes,
admittedly, making design mistakes. In spite of all this, the original idea of an
extensible application platform implemented in Java turned out to be very
smart, innovative, and forward-looking.
NetBeansTM: The Definitive Guide (O’Riley), written in 2001–2002 and the
only comprehensive book on NetBeans APIs to date, was the first attempt to
make the NetBeans Platform available to a wider developer audience. Unfor-
tunately, it was the time when the most serious architectural flaws began to
emerge and became blockers for future development of the platform. By the
time NetBeansTM: The Definitive Guide was published, some of the APIs de-
scribed in the book were gone and new APIs were introduced. The primary
focus had shifted to making a really solid IDE, while the platform evangeliza-
tion had been put on the back burner, known only to those who were really
close to the NetBeans developer community.
Nevertheless, the NetBeans Platform did not disappear. Over several years,
it just got better and more mature. SplittedPanel got deprecated. So did
TopManager, replaced with the Lookup concept allowing for feature discov-
erability and intermodule communication in a distributed and loosely coupled
modular architecture. Many APIs got polished and stabilized. NetBeans IDE
5.0 added extensive support for developing modules and building applications
based on the NetBeans Platform. Creating a new module became simpler than
ever before. The platform.netbeans.org site was established and became
a valuable source of documentation, articles, and tutorials about the platform.
The only thing that was still missing was a new book. I would like to thank
Tim, Jarda, Geertjan, and many other contributors for filling this gap. I believe
it will make the NetBeans Platform accessible to many new developers.
Jan Chalupa
NetBeans Director
Preface
xix
Other documents randomly have
different content
The Project Gutenberg eBook of The Revolt of
the Oyster
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.
Language: English
1922
CONTENTS
THE REVOLT OF THE OYSTER
“IF WE COULD ONLY SEE”
HOW HANK SIGNED THE PLEDGE
ACCURSED HAT
ROONEY'S TOUCHDOWN
TOO AMERICAN
THE SADDEST MAN
DOGS AND BOYS (As told by the dog)
BILL PATTERSON
BLOOD WILL TELL (As told by the dog)
BEING A PUBLIC CHARACTER (As told by the dog)
WRITTEN IN BLOOD (As told by the dogs)
THE REVOLT OF THE OYSTER
“Our remote ancestor was probably arboreal.”—Eminent scientist.
F
rom his hut in the tree-top Probably Arboreal looked lazily
down a broad vista, still strewn with fallen timber as the result
of a whirlwind that had once played havoc in that part of the
forest, toward the sea. Beyond the beach of hard white sand the
water lay blue and vast and scarcely ruffled by the light morning
wind. All the world and his wife were out fishing this fine day.
Probably Arboreal could see dozens of people from where he
crouched, splashing in the water or moving about the beach; and
even hear their cries borne faintly to him on the breeze. They fished,
for the most part, with their hands; and when one caught a fish it
was his custom to eat it where he caught it, standing in the sea.
In Probably Arboreal's circle, one often bathed and breakfasted
simultaneously; if a shark or saurian were too quick for one, one
sometimes was breakfasted upon as one bathed.
In the hut next to Probably Arboreal, his neighbour, Slightly
Simian, was having an argument with Mrs. Slightly, as usual. And, as
usual, it concerned the proper manner of bringing up the children.
Probably listened with the bored distaste of a bachelor.
“I will slap his feet every time he picks things up with them!”
screamed Slightly Simian's wife, an accredited shrew, in her shrill
falsetto..
“It's natural for a child to use his feet that way,” insisted the good-
natured Slightly, “and I don't intend to have the boy punished for
what's natural.” Probably Arboreal grinned; he could fancy the
expression on Old Sim's face as his friend made this characteristically
plebeian plea.
“You can understand once for all, Slightly,” said that gentleman's
wife in a tone of finality, “that I intend to supervise the bringing-up
of these children. Just because your people had neither birth nor
breeding nor manners——”
“Mrs. S.!” broke in Slightly, with a warning in his voice. “Don't you
work around to anything caudal, now, Mrs. S.! Or there'll be trouble.
You get me?”
On one occasion Mrs. Slightly had twitted her spouse with the fact
that his grandfather had a tail five inches long; she had never done
so again. Slightly Simian himself, in his moments of excitement,
picked things up with his feet, but like many other men of humble
origin who have become personages in their maturity, he did not
relish having such faults commented upon.
“Poor old Sim,” mused Probably Arboreal, as he slid down the tree
and ambled toward the beach, to be out of range of the family
quarrel. “She married him for his property, and now she's sore on
him because there isn't more of it.”
Nevertheless, in spite of the unpleasant effect of the quarrel,
Probably found his mind dwelling upon matrimony that morning. A
girl with bright red hair, into which she had tastefully braided a
number of green parrot feathers, hit him coquettishly between the
shoulder blades with a handful of wet sand and gravel as he went
into the water. Ordinarily he would either have taken no notice at all
of her, or else would have broken her wrist in a slow, dignified,
manly sort of way. But this morning he grabbed her tenderly by the
hair and sentimentally ducked her. When she was nearly drowned he
released her. She came out of the water squealing with rage like a
wild-cat and bit him on the shoulder.
“Parrot Feathers,” he said to her, with an unwonted softness in his
eyes, as he clutched her by the throat and squeezed, “beware how
you trifle with a man's affections—some day I may take you
seriously!”
He let the girl squirm loose, and she scrambled out upon the
beach and threw shells and jagged pieces of flint at him, with an
affectation of coyness. He chased her, caught her by the hair again,
and scored the wet skin on her arms with a sharp stone, until she
screamed with the pain, and as he did it he hummed an old love
tune, for to-day there was an April gladness in his heart.
“Probably! Probably Arboreal!” He spun around to face the girl's
father, Crooked Nose, who was contentedly munching a mullet.
“Probably,” said Crooked Nose, “you are flirting with my daughter!”
“Father!” breathed the girl, ashamed of her parent's tactlessness.
“How can you say that!”
“I want to know,” said Crooked Nose, as sternly as a man can who
is masticating mullet, “whether your intentions are serious and
honourable.”
“Oh, father!” said Parrot Feathers again. And putting her hands in
front of her face to hide her blushes she ran off. Nevertheless, she
paused when a dozen feet away and threw a piece of drift-wood at
Probably Arboreal. It hit him on the shin, and as he rubbed the spot,
watching her disappear into the forest, he murmured aloud, “Now, I
wonder what she means by that!”
“Means,” said Crooked Nose. “Don't be an ass, Probably! Don't
pretend to me you don't know what the child means. You made her
love you. You have exercised your arts of fascination on an innocent
young girl, and now you have the nerve to wonder what she means.
What'll you give me for her?”
“See here, Crooked Nose,” said Probably, “don't bluster with me.”
His finer sensibilities were outraged. He did not intend to be coerced
into matrimony by any father, even though he were pleased with
that father's daughter. “I'm not buying any wives to-day, Crooked
Nose.”
“You have hurt her market value,” said Crooked Nose, dropping his
domineering air, and affecting a willingness to reason. “Those marks
on her arms will not come off for weeks. And what man wants to
marry a scarred-up woman unless he has made the scars himself?”
“Crooked Nose,” said Probably Arboreal, angry at the whole world
because what might have been a youthful romance had been given
such a sordid turn by this disgusting father, “if you don't go away I
will scar every daughter you've got in your part of the woods. Do
you get me?”
“I wish you'd look them over,” said Crooked Nose. “You might do
worse than marry all of them.”
“I'll marry none of them!” cried Probably, in a rage, and turned to
go into the sea again.
A heavy boulder hurtled past his head. He whirled about and
discovered Crooked Nose in the act of recovering his balance after
having flung it. He caught the old man half way between the beach
and the edge of the forest. The clan, including Crooked Nose's four
daughters, gathered round in a ring to watch the fight.
It was not much of a combat. When it was over, and the girls took
hold of what remained of their late parent to drag him into the
woods, Probably Arboreal stepped up to Parrot Feathers and laid his
hand upon her arm.
“Feathers,” he said, “now that there can be no question of
coercion, will you and your sisters marry me?”
She turned toward him with a sobered face. Grief had turned her
from a girl into a woman.
“Probably,” she said, “you are only making this offer out of
generosity. It is not love that prompts it. I cannot accept. As for my
sisters, they must speak for themselves.”
“You are angry with me, Feathers?”
The girl turned sadly away. Probably watched the funeral cortège
winding into the woods, and then went moodily back to the ocean.
Now that she had refused him, he desired her above all things. But
how to win her? He saw clearly that it could be no question of brute
force. It had gone beyond that. If he used force with her, it must
infallibly remind her of the unfortunate affair with her father. Some
heroic action might attract her to him again. Probably resolved to be
a hero at the very earliest opportunity.
In the meantime he would breakfast. Breakfast had already been
long delayed; and it was as true then, far back in the dim dawn of
time, as it is now, that he who does not breakfast at some time
during the day must go hungry to bed at night. Once more Probably
Arboreal stepped into the ocean—stepped in without any
premonition that he was to be a hero indeed; that he was chosen by
Fate, by Destiny, by the Presiding Genius of this planet, by whatever
force or intelligence you will, to champion the cause of all Mankind in
a crucial struggle for human supremacy.
He waded into the water up to his waist, and bent forward with
his arms beneath the surface, patiently waiting. It was thus that our
remote ancestors fished. Fish ran larger in those days, as a rule. In
the deeper waters they were monstrous. The smaller fish therefore
sought the shallows where the big ones, greedy cannibals, could not
follow them. A man seldom stood in the sea as Probably Arboreal
was doing more than ten minutes without a fish brushing against
him either accidentally or because the fish thought the man was
something good to eat. As soon as a fish touched him, the man
would grab for it. If he were clumsy and missed too many fish, he
starved to death. Experts survived because they were expert; by a
natural process of weeding out the awkward it had come about that
men were marvellously adept. A bear who stands by the edge of a
river watching for salmon at the time of the year when they rim up
stream to spawn, and scoops them from the water with a deft twitch
of his paw, was not more quick or skillful than Probably Arboreal.
Suddenly he pitched forward, struggling; he gave a gurgling
shout, and his head disappeared beneath the water.
When it came up again, he twisted toward the shore, with lashing
arms and something like panic on his face, and shouted:
“Oh! Oh! Oh!” he cried. “Something has me by the foot!”
Twenty or thirty men and women who heard the cry stopped
fishing and straightened up to look at him.
“Help! Help!” he shouted again. “It is pulling me out to sea!”
A knock-kneed old veteran, with long intelligent-looking mobile
toes, broke from the surf and scurried to the safety of the beach,
raising the cry:
“A god! A god! A water-god has caught Probably Arboreal!”
“More likely a devil!” cried Slightly Simian, who had followed
Probably to the water.
And all his neighbours plunged to land and left Probably Arboreal
to his fate, whatever his fate was to be. But since spectacles are
always interesting, they sat down comfortably on the beach to see
how long it would be before Probably Arboreal disappeared. Gods
and devils, sharks and octopi, were forever grabbing one of their
number and making off to deep water with him to devour him at
their leisure. If the thing that dragged the man were seen, if it
showed itself to be a shark or an octopus, a shark or an octopus it
was; if it were unseen, it got the credit of being a god or a devil.
“Help me!” begged Probably Arboreal, who was now holding his
own, although he was not able to pull himself into shallower water.
“It is not a god or a devil. It doesn't feel like one. And it isn't a
shark, because it hasn't any teeth. It is an animal like a cleft stick,
and my foot is in the cleft.”
But they did not help him. Instead, Big Mouth, a seer and vers
libre poet of the day, smitten suddenly with an idea, raised a chant,
and presently all the others joined in. The chant went like this:
Out of the woods came running more and more people at the
noise of the chant. And as they caught what was going on, they took
up the burden of it, until hundreds and thousands of them were
singing it.
But, with a mighty turn and struggle, Probably Arboreal went
under again, as to his head and body; his feet for an instant swished
into the air, and everyone but Probably Arboreal himself saw what
was hanging on to one of them.
It was neither ghost, shark, god, nor devil. It was a monstrous
oyster; a bull oyster, evidently. All oysters were much larger in those
days than they are now, but this oyster was a giant, a mastodon, a
mammoth among oysters, even for those days.
“It is an oyster, an oyster, an oyster!” cried the crowd, as Probably
Arboreal's head and shoulders came out of the water again.
Big Mouth, the poet, naturally chagrined, and hating to yield up
his dramatic idea, tried to raise another chant:
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com