| JDialog dispose and application window popping |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Struts JDO EJB Hibernate JFC - NUTS !The industry is in pure and utter chaos.
So many choices. How does one know which one is the popular one?
Is it Struts? Is it JFC? Is EJB unpopular (bloat)?
Personally, I find that xdoclet makes writing EJB's a total breeze,
dealing with the database that is. Are people using JDO now, or have
people been looking to see what JDO is all about but can't find any
solid examples so that people can't get rolling with it?
For the webgui, I wish more solutions would take the XMLC (enhydra) or
Tapestry approach. JSP / JSF / Struts all fail to separate design
from content.
Which framework handles form processing best? When I tried Struts I
lost days and days dealing with the uninformative errors it spits out.
Which one is better? What do people like these days? Or is everyone
else also in disarray, and keeps browsing site after site after blog
after blog and can't seem to get the scoop anymore?
- 3
- McNealy should have watched "Godfather 3" -- "Never hate your enemies, it clouds your judgement.""The worst thing about this deal is that Sun brought it upon itself
through a campaign of ridicule and hate promulgated personally by CEO
Scott McNealy. This is McNealy's failure and nobody else's. The quotes
last week from McNealy were laughable, the about face nothing short of
shameful. How are Sun's big customers going to believe what the company
says in the future in the face of such a change? How can they base huge
technical investments on the word of Sun?"
Answer: They can't. They never could.
http://www.pbs.org/cringely/pulpit/pulpit20040408.html
- 8
- memory profiler recommendationJavameisters,
I have written an application for J2SE using the Netbeans IDE. I would
like to test it for memory leaks before releasing it, and would like a
recommendation as to what to use. I tried OptimizeIt some time ago,
and it seemed to do what I want, but I was just wondering if there are
better (or less expensive) alternatives.
Thanks much,
Matthew Fleming
email***@***.com
(please remove X before using this address)
- 8
- Bug#166370: Join our marketing teamWe are Looking for partners worldwide. The position is home-based. Our Company Head Office is located in UK with branches all over the world. We are looking for talented, honest, reliable representatives from different regions. The ideal candidate will be an intelligent person, someone who can work autonomously with a high degree of enthusiasm. Our Company offers a very competitive salary to the successful candidate, along with an unrivalled career progression opportunity.
If you would like to work with our active, dynamic team, we invite you to apply for employment. Preference will be given to applicants with knowledge of multiple languages.
Please send the following information to email***@***.com.
1. Full name
2 Address of residence
3 Contact Phone numbers
4 Languages spoken
5 Whether you are interested in part time job or full time employment.
Thank you. We look forward to working with you.
If you received this message in error, please send a blank email to: email***@***.com.
--
To UNSUBSCRIBE, email to email***@***.com
with a subject of "unsubscribe". Trouble? Contact email***@***.com
- 9
- AffineTransform.getScaleInstance questionHi,
I am using the AffineTransform.getScaleInstance to transform an image
by showing it growing. i.e. something like the following:
while(scale <= 1) {
repaint();
scale += 0.05;
try {
Thread.sleep(25);
}
catch(InterruptedException e) {
e.printStackTrace();
}
}
public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
g2.setComposite(AlphaComposite.SrcAtop);
g2.transform(AffineTransform.getScaleInstance(scale, scale));
g2.fill(clipShape);
g2.dispose();
}
the problem is that the image grows large from the top lefthand corner
towards the bottom right hand corner.
What I want is the image to grow from the bottom left hand corner to
the top right hand corner.
I have tried messing with the Scale instance, but I cant seem to figure
it out.
anyone know how to do this? thanks!
- 11
- M-I 5-Persecution . my resp onse to the harass ment-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-= my response to the. harassment -=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
My first reaction in 1990/91 was to assume that. if I broke contact then
they would not be able to follow and would lose interest.. So I did the
things that have been suggested by other people; I sold my. television,
stopped listening to the radio and tried. to withdraw away from the sources
of abuse as much as possible. I reasoned that. they must have more important
things. to deal with and that normal people would simply leave me alone if
it. were made difficult for them to continue their harassment.
I reckoned without the sheer vindictiveness of the abusers. They. did not
let up. but instead "got to" people around me, mainly people at work, to do
their dirty work for them. I went to see my GP, who refused to. believe what
he was being told, and. refused to direct me on to anyone who could be of
practical assistance. It was not until three. years had passed that the GP
admitted the matter was. outside his competence and suggested going to the
police.
In the summer of 1994 we called in. counter-surveillance experts from a
private detective agency to sweep our house and telephone for. bugging
devices. They conducted. a thorough search and found nothing; but as noted
above, since the existence of surveillance was being. forced in my face by
the harassers, you would expect. them to have taken the possibility of a
counter-surveillance sweep into account when. planning the type of devices
to. be employed.
In Easter 1995 I made a complaint to. my local Police station in London, but
the police have not expressed any intention to do anything about. the
continuing harassment ("we're not saying it's. happening and we're not
saying it isn't. happening" were the words used). I think the officer I
spoke to at Easter wasn't aware of it happening, although other members. of
the police force obviously do. know.
From April 1995 until the present time the. matter has been discussed in a
lot of detail on the Usenet (Internet) "uk.misc" newsgroup.. That discussion
has. given birth to the article which you are now reading. My hopes in
posting to Usenet were that. wider publicizing would discourage the security
services from continuing their harassment, and "draw. people out" into
concurring with the truth of what was being said. Neither of. those have
followed, but the discussion has served a purpose in allowing. this
structured. report to be created.
8322
- 11
- Improving hashCode() to match equals()In my NamedBitField class I define equals() to mean that 2
NamedBitFields are equal if all 3 of their fields are equal.
Any suggestions for improving my hashCode() definition? I
can improve its performance by caching the computed hashCode
in a transient field, sure, but can I improve the _way_ it's
computed?
class NamedBitField {
String name; // name of bit field
int startIndex; // where it starts
int length; // how many bits it occupies
pubic boolean equals(Object obj) {
if (this == obj)
return true;
if ( obj == null || this.getClass() != obj.getClass() )
return false;
NamedBitField other = (NamedBitField) obj;
return
this.name.equals(other.name) &&
this.startIndex == other.startIndex &&
this.length == other.length;
}
public int hashCode() {
// to make this symmetric with equals() I'd prefer to
// involve all 3 fields (name, startIndex and length)
// in the computation of the hash. But how?
//
// Here I'm simply reusing String.hashCode(), but the
// hashed String at least incorporates the other
// fields
return ((name + startIndex) + length).hashCode();
}
}
Marco
----------------------------------------------------
Please remove digits from e-mail address (tr/0-9//d)
- 11
- Doing one last thing to a WeakReferenceLew wrote:
> Paul J. Lucas wrote:
>> Lew wrote:
>>>
>>> This is not a flaw in Java.
>>
>> Yes it is.
>
> No, it isn't.
Real compelling argument there. Java programmers need to stop being in denial
and admit that Java has flaws just like every other language.
- Paul
- 13
- Saving a BufferedImage as a JPEGI am saving a BufferedImage as a JPEG file under Windows XP.
I am using the JAI JPEGImageEncoder class.
The JPEG is saved as CMYK but I need RGB.
I cannot figure out how to get RGB. Any help?
- 13
- 13
- 14
- Java proxy server for IEHi,
I hope someone can help me (I am an inexperienced Java programmer).
What I'm trying to do is write a Java Application that acts as a proxy
server for Internet Explorer. The goal of the little Java application
is to be able to log HTTP requests and responses between IE and a web
server.
I've pasted my application as it exists so far. It only handles HTTP
GETs right now, which is fine for my purposes at the moment. It works
for simple HTML pages. The problem is that I can't get it to
read/write graphic information correctly, such as when a web page
requests a gif (the graphic appears messed up in IE). I have 2
questions for all the Java experts out there:
(1) How can I handle binary content so it's properly rendered in the
browser.
(2) Using writeBytes from the DataOuputStream class seems to write one
byte at time, even though I'm passing in a string. I'd like a method
that writes in batches to the socket endpoint. Is that possible?
Thanks for any and all help!
import java.io.*;
import java.net.*;
class SimpleProxy {
public static void main(String[] args) {
ServerSocket ss = null;
Socket s = null; // client socket connection with client (browser)
DataOutputStream os = null; //client (browser) output;
DataInputStream is = null; //client (browser) input
String sInput;
int iPosURLEnd;
String sURL;
Socket sServ = null; //client socket connection with server (web
server)
DataOutputStream osServ = null; //server (web server) output;
DataInputStream isServ = null; //client (web server) input
int iPosHostStart;
String sHost;
System.out.println ("Starting app...\r\n");
try {
ss = new ServerSocket(45678);
}
catch (Exception e) {
System.out.println ("Error establishing ServerSocket
connection.\r\n");
System.out.println ("Error: " + e.getMessage());
}
for (; ;) {
try {
s = ss.accept();
System.out.println("Connection established.\r\n");
os = new DataOutputStream(s.getOutputStream());
is = new DataInputStream(s.getInputStream());
}
catch (Exception e) {
System.out.println ("Error establishing connection.\r\n");
System.out.println ("Error: " + e.getMessage());
}
System.out.println("--------- Read REQUEST from client
--------\r\n");
for (; ;) {
try {
sInput = is.readLine();
if (sInput == null)
break;
System.out.println("Client: " + sInput);
if (sInput.startsWith("GET",0)) {
iPosURLEnd = sInput.indexOf(" ",4); // 4 = Len("GET ")
sURL = sInput.substring(4, iPosURLEnd);
iPosHostStart = sURL.indexOf("://") + 3; // 3 = Len("://")
sHost = sURL.substring(iPosHostStart,
sURL.indexOf("/",iPosHostStart+1));
try {
sServ = new Socket(sHost, 80); //assume port 80
osServ = new
DataOutputStream(sServ.getOutputStream());
isServ = new DataInputStream(sServ.getInputStream());
}
catch (Exception e) {
System.out.println ("Error establishing connection with
server.\r\n");
System.out.println ("Error: " + e.getMessage());
}
}
osServ.writeBytes(new String(sInput + "\r\n"));
if (sInput.compareTo("") == 0)
break;
}
catch (Exception e) {
System.out.println ("Error reading information from
client.\r\n");
System.out.println ("Error: " + e.getMessage());
}
}
System.out.println("--------- Write RESPONSE from server
--------\r\n");
for (; ;) {
try {
sInput = isServ.readLine();
if (sInput == null)
break;
System.out.println("Server: " + sInput);
os.writeBytes(new String(sInput + "\r\n"));
}
catch (Exception e) {
System.out.println ("Error reading information from
server.\r\n");
System.out.println ("Error: " + e.getMessage());
}
}
try {
isServ.close();
osServ.close();
sServ.close();
is.close();
os.close();
s.close();
}
catch (IOException e) {
System.out.println ("Error closing sockets.\r\n");
System.out.println ("Error: " + e.getMessage());
}
}
}
}
- 15
- paintComponent into a BuffereImage?It seems like I should be able to override the paintComponent method of
a class and have it do its paint into a BufferedImage something like
this:
public void paintComponent(Graphics g) {
BufferedImage image = new BufferedImage(width, height,
BufferedImage.TYPE_INT_RGB);
Graphics2D g2D = image.createGraphics();
super.paintComponent( g2D );
.. etc ...
But all I get is a null pointer exception on super.paintComponent( g2D
); even though g2D is definitely NOT null. The exception actually comes
deep in the bowels of Java at:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at java.awt.Rectangle.intersects(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at TextPanel.paintComponent(TestClass.java:139) <--- the
super.paintComonent()
Any ideas on how to make this work?
Thanks,
--gary
- 16
- [Active Tags] Have the RefleX !hi,
People that are intersting in native XML programming can download the
RefleX engine freely here :
http://reflex.gforge.inria.fr
RefleX is available under the french license CeCILL, which is almost the
same as the well-known GNU GPL.
RefleX is a Java tool that allows people that have no particular
knowledge of Java to write smart programs entirely in XML ; however, the
most brave fellows could also design their own tags and plug them to the
engine ! Have a look at the "How-To" section to achieve this.
The concepts of native XML programming used in RefleX have been designed
separately, so that other implementations on other platforms/languages
can be considered.
Why programming in XML ?
At INRIA, we have experienced RefleX on a *real* operational project,
and it appears that :
-the code is very easy to produce
-the amount of code produced is very tiny
Despite the intrinsic verbosity of XML, the expressiveness of XPath
(which is used intensively in Active Tags) and the ability to declare
complex processes exposed as simple tags makes Active Tags programs very
efficient.
Active Tags has been designed like a programming language : it offers
several libraries (called modules) for different purpose : system
interactions, I/O, SQL, Web, etc and allow users to define simply their
own libraries, but Active Tags differs from other programming languages
in many ways... read more on the Active Tags website or on the RefleX
web site !
http://reflex.gforge.inria.fr
http://disc.inria.fr/perso/philippe.poulard/xml/active-tags/
You'll find on the RefleX web site some tutorials that are showing the
traditional "hello world" example, how to publish an entire XML
repository to HTML, how to map SQL to XML, how to design an MVC
architecture, and how to play with datatypes and PSVI ; most of them are
available in batch mode as well as in a Web application ready to run.
Don't say anymore that Santa Claus doesn't exists !
Enjoy !
--
Cordialement,
///
(. .)
-----ooO--(_)--Ooo-----
| Philippe Poulard |
-----------------------
- 16
- JSP, forward, include, dispatch rules ?Can I get a clear summary of the rules involved with these ?
forward, include, RequestDispatcher rd
<jsp:include page="servlet/MyServlet" flush="false" />
rd.forward(req, res);
<jsp:forward page="NextPart.jsp" />
response.sendRedirect("NewPage.html");
What I have seen, is that this Error occurs:
'IllegalStateException: Cannot forward after response has been
committed'
When a JSP/Servlet writes to the page using a PrintWriter and then
tries to do a forward.
Maybe the following also cause problems:
response.setContentType(...)
response.setHeader(...)
TIA for your help, suggestions; Please Advise.
|
| Author |
Message |
aclarke

|
Posted: 2004-9-21 4:03:00 |
Top |
java-programmer, JDialog dispose and application window popping
Hello!
I have an application where I show a JDialog (sort of as a status
indicator). During this time, I launch an application like Excel
(which comes up successfully). Once that other application is
launched, I take down my dialog by calling dlg.dispose(). Note that
the user did NOT interact with that dialog.
After the dialog disappears, my application pops itself to be
frontmost. I cannot figure out how to make my application stop this
behavior. I want the second application (Excel in this case), to
remain in front.
I have been searching all over and cannot find any solution to this
problem. I do know its tied up with the dispose() because not invoking
it leaves things the way I want (except that my modal dialog is still
up).
Any pointers would be appreciated.
Allan
|
| |
|
| |
 |
Paul Lutus

|
Posted: 2004-9-21 12:55:00 |
Top |
java-programmer >> JDialog dispose and application window popping
ac wrote:
/ ...
> I have been searching all over and cannot find any solution to this
> problem. I do know its tied up with the dispose() because not invoking
> it leaves things the way I want (except that my modal dialog is still
> up).
The simple version: Java can only control the Z-order of its own windows. It
cannot control the order of system windows.
--
Paul Lutus
http://www.arachnoid.com
|
| |
|
| |
 |
aclarke

|
Posted: 2004-9-21 20:32:00 |
Top |
java-programmer >> JDialog dispose and application window popping
Paul Lutus <email***@***.com> wrote in message news:<email***@***.com>...
> ac wrote:
>
> / ...
>
> > I have been searching all over and cannot find any solution to this
> > problem. I do know its tied up with the dispose() because not invoking
> > it leaves things the way I want (except that my modal dialog is still
> > up).
>
> The simple version: Java can only control the Z-order of its own windows. It
> cannot control the order of system windows.
Understood. The behavior I'm seeing is that my Java app is popping
itself to the front. Here is the time order of events:
1. launch my app (the frontmost app window)
2. put up modal dialog in my app
3. launch Excel (which is now the frontmost app window)
4. programmatically dispose of the modal dialog
5. my app moves itself to be frontmost
That last event is the problem and is some default behavior in the
JDK.
Ideas? Hints? Imprecations?
Allan
|
| |
|
| |
 |
Paul Lutus

|
Posted: 2004-9-22 3:04:00 |
Top |
java-programmer >> JDialog dispose and application window popping
ac wrote:
> Paul Lutus <email***@***.com> wrote in message
> news:<email***@***.com>...
>> ac wrote:
>>
>> / ...
>>
>> > I have been searching all over and cannot find any solution to this
>> > problem. I do know its tied up with the dispose() because not invoking
>> > it leaves things the way I want (except that my modal dialog is still
>> > up).
>>
>> The simple version: Java can only control the Z-order of its own windows.
>> It cannot control the order of system windows.
>
> Understood.
Evidently not.
> The behavior I'm seeing is that my Java app is popping
> itself to the front. Here is the time order of events:
>
> 1. launch my app (the frontmost app window)
> 2. put up modal dialog in my app
> 3. launch Excel (which is now the frontmost app window)
> 4. programmatically dispose of the modal dialog
> 5. my app moves itself to be frontmost
>
> That last event is the problem and is some default behavior in the
> JDK.
No, the JDK (actually, the JRE) has nothing to do with this behavior. I
repeat:
>> The simple version: Java can only control the Z-order of its own windows.
>> It cannot control the order of system windows.
Excel is not a Java application, it is a system application. It is your OS
that is choosing to place the Java application in front of the Excel
application. This has nothing to do with Java.
--
Paul Lutus
http://www.arachnoid.com
|
| |
|
| |
 |
Larry Barowski

|
Posted: 2004-9-22 11:07:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"Paul Lutus" <email***@***.com> wrote in message
news:email***@***.com...
> Excel is not a Java application, it is a system application. It is your OS
> that is choosing to place the Java application in front of the Excel
> application. This has nothing to do with Java.
So there is no way to programmatically close a dialog in Windows
without popping the parent window to the front? If there is a
way, then the Java library code should use it. It makes no sense
to move a window to the front just because a child dialog was
closed.
|
| |
|
| |
 |
Paul Lutus

|
Posted: 2004-9-22 13:03:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"Larry Barowski" <larrybarATengDOTauburnDOTeduANDthatISall> wrote:
>
> "Paul Lutus" <email***@***.com> wrote in message
> news:email***@***.com...
>> Excel is not a Java application, it is a system application. It is your
>> OS that is choosing to place the Java application in front of the Excel
>> application. This has nothing to do with Java.
>
> So there is no way to programmatically close a dialog in Windows
> without popping the parent window to the front? If there is a
> way, then the Java library code should use it. It makes no sense
> to move a window to the front just because a child dialog was
> closed.
The problem is not that the window is moved to the front -- as far as Java
is concerned, there were two windows, now there is one. Obviously it is in
front.
As far as the system is concerned, the window is in front of the one that
contains Excel, for the simple reason that the dialog has just had the
focus, so the focus shifts to the dialog's parent window. But this is a
system issue, it has nothing to do with Java. In fact, any application that
has a modal dialog that is closed will receive the focus.
--
Paul Lutus
http://www.arachnoid.com
|
| |
|
| |
 |
Babu Kalakrishnan

|
Posted: 2004-9-22 17:33:00 |
Top |
java-programmer >> JDialog dispose and application window popping
Paul Lutus wrote:
>
> The problem is not that the window is moved to the front -- as far as Java
> is concerned, there were two windows, now there is one. Obviously it is in
> front.
>
> As far as the system is concerned, the window is in front of the one that
> contains Excel, for the simple reason that the dialog has just had the
> focus, so the focus shifts to the dialog's parent window. But this is a
> system issue, it has nothing to do with Java. In fact, any application that
> has a modal dialog that is closed will receive the focus.
>
I disagree with this point of view. If the system Window Manager is
bringing the Java window into focus, it is certainly because it received
some event that caused it to come to front - and that event couldn't
have originated from anywhere other than the JVM.
I would suggest that the OP look in Sun's bug database to see if this
has been filed as a bug, and if not file one. It most probably is an AWT
implementation bug - I suspect the AWT must be signalling the OS
Windowing system for the main frame to be brought into focus, and this
is wrong behaviour. The signal must be sent only if the dialog that was
closing was in focus at the time of its closing and not otherwise (And I
don't think it is impossible for the AWT subsystem to determine if the
dialog was the system focused window or not)
BK
|
| |
|
| |
 |
aclarke

|
Posted: 2004-9-22 20:31:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"Larry Barowski" <larrybarATengDOTauburnDOTeduANDthatISall> wrote in message news:<email***@***.com>...
> "Paul Lutus" <email***@***.com> wrote in message
> news:email***@***.com...
> > Excel is not a Java application, it is a system application. It is your OS
> > that is choosing to place the Java application in front of the Excel
> > application. This has nothing to do with Java.
>
> So there is no way to programmatically close a dialog in Windows
> without popping the parent window to the front? If there is a
> way, then the Java library code should use it. It makes no sense
> to move a window to the front just because a child dialog was
> closed.
Paul, I am not convinced that this behavior is being implemented in
the OS at all. I have MFC-based applications which do not do this. I
have been digging around some in the JDK source and I think it has
something to do with the focus cycle root.
Another hint: if I just hide the modal dialog, my application still
pops forward in z-order.
I do appreciate the comments/advice.
|
| |
|
| |
 |
Larry Barowski

|
Posted: 2004-9-23 6:41:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"Paul Lutus" <email***@***.com> wrote in message
news:email***@***.com...
> "Larry Barowski" <larrybarATengDOTauburnDOTeduANDthatISall> wrote:
>
> The problem is not that the window is moved to the front -- as far as Java
> is concerned, there were two windows, now there is one. Obviously it is in
> front.
Read the original post again. There were three windows,
the Excel window, the main window for the Java
application, and the dialog for the Java application. The
Excel window was on top. Closing the dialog
programmatically caused the main window for the Java
app to move to the front. I'm posting a work-around in
response to the original post.
|
| |
|
| |
 |
Larry Barowski

|
Posted: 2004-9-23 6:48:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"ac" <email***@***.com> wrote in message
news:email***@***.com...
> Hello!
>
> I have an application where I show a JDialog (sort of as a status
> indicator). During this time, I launch an application like Excel
> (which comes up successfully). Once that other application is
> launched, I take down my dialog by calling dlg.dispose(). Note that
> the user did NOT interact with that dialog.
>
> After the dialog disappears, my application pops itself to be
> frontmost.
It seems this only happens for modal dialogs. Using
setModal(false) then disposing immediately still
causes the problem, but setModal(false) followed
by a dispose() in an invokeLater() seems to work,
like this:
dialog.setModal(false);
SwingUtilities.invokeLater(
new Runnable() {
public void run() {
dialog.dispose(); } } );
I tested this on 1.3.1_04 and 1.5.0 rc.
|
| |
|
| |
 |
aclarke

|
Posted: 2004-9-23 20:27:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"Larry Barowski" <larrybarATengDOTauburnDOTeduANDthatISall> wrote in message news:<email***@***.com>...
> "ac" <email***@***.com> wrote in message
> news:email***@***.com...
> > Hello!
> >
> > I have an application where I show a JDialog (sort of as a status
> > indicator). During this time, I launch an application like Excel
> > (which comes up successfully). Once that other application is
> > launched, I take down my dialog by calling dlg.dispose(). Note that
> > the user did NOT interact with that dialog.
> >
> > After the dialog disappears, my application pops itself to be
> > frontmost.
>
> It seems this only happens for modal dialogs. Using
> setModal(false) then disposing immediately still
> causes the problem, but setModal(false) followed
> by a dispose() in an invokeLater() seems to work,
> like this:
>
> dialog.setModal(false);
> SwingUtilities.invokeLater(
> new Runnable() {
> public void run() {
> dialog.dispose(); } } );
>
> I tested this on 1.3.1_04 and 1.5.0 rc.
Paul, I think you misunderstood my description of the window
placement. After all windows were visible, the Excel window was in
front, the modal dialog was next, then my app's window was next. It
was not the ordering: modal dialog, excel, my app.
Larry, many thanks for the workaround. I will go give it a try.
Thanks to all who took an interest in this thread.
Allan
|
| |
|
| |
 |
Babu Kalakrishnan

|
Posted: 2004-9-23 20:40:00 |
Top |
java-programmer >> JDialog dispose and application window popping
ac wrote:
>
> Paul, I think you misunderstood my description of the window
> placement. After all windows were visible, the Excel window was in
> front, the modal dialog was next, then my app's window was next. It
> was not the ordering: modal dialog, excel, my app.
>
> Larry, many thanks for the workaround. I will go give it a try.
>
> Thanks to all who took an interest in this thread.
>
If you have a small piece of code which will reproduce this symptom
everytime, please do file a bug report at Sun's site attaching the
sample code. I couldn't locate anything in their bug database database
with similar symptoms (most of them are related to windows *not* coming
to front !!) Might help them fix it for the next version of the JDK at
least..
BK
|
| |
|
| |
 |
Larry Barowski

|
Posted: 2004-9-24 1:52:00 |
Top |
java-programmer >> JDialog dispose and application window popping
"Babu Kalakrishnan" <email***@***.com> wrote in message
news:email***@***.com...
> ac wrote:
> If you have a small piece of code which will reproduce this symptom
> everytime, please do file a bug report at Sun's site attaching the
> sample code. I couldn't locate anything in their bug database database
> with similar symptoms (most of them are related to windows *not* coming
> to front !!) Might help them fix it for the next version of the JDK at
> least..
I've already done this, so Allan need not bother.
|
| |
|
| |
 |
Larry Barowski

|
Posted: 2004-9-24 3:15:00 |
Top |
java-programmer >> JDialog dispose and application window popping
> dialog.setModal(false);
> SwingUtilities.invokeLater(
> new Runnable() {
> public void run() {
> dialog.dispose(); } } );
This doesn't seem to work in most situations. You can hide
the dialog without popping up a frame, by doing:
dialog.setModal(false);
dialog.setVisible(false);
So you could do this, then wait to dispose the dialog until
another one is popped up, or just keep the dialog around
and re-use it (be sure to set it modal again before re-using).
Also, I find that the popped up window need not be the
parent of the dialog. If the parent is not visible, some other
frame (if there is one) will pop up.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- JDK 1.5 and J2EE?I have bravely set up JDK 1.5 on one of my systems, which works a
treat. The trouble I'm having is with using it for J2EE applications.
I've tried dropping j2ee.jar into lib/ext so I can get at Servlet
and so on, but then I get another problem...
I use TransformerFactory.newInstance(), and I get a "class not found"
exception for org.apache.whatever.Transformer (which JDK 1.4 used)
rather than com.sun.org.apache.whatever (as per JDK 1.5). I presume
that the TransformerFactory is coming from j2ee.jar rather than the
1.5 library for this to happen...?
So: I want to be able to rebuild (and improve!) a load of code using
1.5, and I can do this for most things; servlets recompile fine, as
do various other apps, but I seem to have a choice between leaving
all my servlets on 1.4 (and removing j2ee.jar from 1.5) or leaving
my XML stuff on 1.4 (which I don't want to do, because I want some
of the 1.5 enhancements).
Any suggestions? Am I being stupid again?
-----------------------------------------------------------------
John English | mailto:email***@***.com
Senior Lecturer | http://www.it.bton.ac.uk/staff/je
School of Computing & MIS | ** NON-PROFIT CD FOR CS STUDENTS **
University of Brighton | -- see http://burks.bton.ac.uk
-----------------------------------------------------------------
- 2
- auto-resizing applets?Say I have the following applet:
import java.applet.*;
import java.awt.*;
public class Test extends Applet
{
public void start()
{
try
{
add(new Label(getParameter("echo")));
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
Here's how I'm including it:
<applet width="500" height="500" code="Test.class">
<param name="echo" value="hello, world!" />
</applet>
The only problem with this method is that the width and height are
fixed. Is there a way for the width and height to be exactly as big as
they need to be to display the echo parameter, whatever it may be?
Also, would it be possible to change the font of the Label? Or maybe
make it so that you can highlight the Label's text just as you can
normal html?
- 3
- Simple recursion / stack question
Hi All,
I suspect this is a bit of a 'how long is a piece of string' type question
(the answer to which is of course precisely 2 x half its length) but I'm
going to ask it anyway.....
How deep is the java process stack? If I write some complicated piece of
code that is recursive, how can I know if I will run out of stack doing the
recursion or not?
Michael
- 4
- Howto read newline characterHi,
I'm new to java and I'm writing a simple text editor using swt examples
from eclipse. The only problem I see is that my editor wont display the
text file correctly. It will display the whole text file in one line.
Here is the code I use to open file. I don't know where to start.
public class OpenFile extends SelectionAdapter {
public void widgetSelected(SelectionEvent event) {
FileDialog fileOpen = new FileDialog(shell, SWT.OPEN);
fileOpen.setText("Open");
String[] filterExt = { "*.txt", "*.ini", "*.*" };
fileOpen.setFilterExtensions(filterExt);
String selected = fileOpen.open();
if (selected == null) {
return;
}
FileReader file = null;
try {
file = new FileReader(selected);
} catch (FileNotFoundException e) {
MessageBox messageBox = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);
messageBox.setMessage("Could not open file.");
messageBox.setText("Error");
messageBox.open();
return;
}
BufferedReader fileInput = new BufferedReader(file);
String textString = null;
StringBuffer sb = new StringBuffer();
try {
do {
if (textString != null) {
sb.append(textString);
}
} while ((textString = fileInput.readLine()) != null);
} catch (IOException e1) {
MessageBox messageBox = new MessageBox(shell, SWT.ICON_ERROR |
SWT.OK);
messageBox.setMessage("Could not write to file.");
messageBox.setText("Error");
messageBox.open();
return;
}
text.setText(sb.toString());
}
}
Thanks in advance,
C
- 5
- Correct use of ReadableByteChannelFor a piece of code intented to be rather
generic, I thought it would be a good idea
that it reads its input from a
ReadableByteChannel. The main reason to
choose it over an InputStream was that the
channel can be obtained for an InputStream as
well as for a RandomAccessFile.
Now the question:
How do you correctly perform a blocking read
from a ReadableByteChannel given that it does
not necessarily block?
I came up with
ReadableByteChannel source;
ByteBuffer inBuf;
...
int result;
while( 0==(result=source.read(inBuf)) ) Thread.yield();
In case the channel is blocking, the yield()
will never be called. If the channel is
non-blocking, the yield() may be called. But
on a machine without much load, I am afraid
it will generate load because no other thread
is interested in the processor.
Any ideas how this can be done better?
Harald.
- 6
- Import of large CSV datasets in JavaLike many other enterprise applications, in our application we need to
export and import of large data in CSV format. As many people
suggested in the newsgroups we may use native tools such as SQL*Loader
for performance reasons.
But in our application we have internally generated sequence number as
PK. So we will not have luxury of using these tools directly.
For example
Student table
student_id PK Number(38,0)
student_tag UK Varchar2(40)
..
Course table
course_id PK Number(38,0)
course_tag UK Varchar2(4)
..
Student_Course table
student_id
course_id
..
If we need to import student table, then we may have only student_tag
and other info and we need to find student_id (using
seq_student.nextval or internally maintain seq number and refresh the
count at the end of the import)
If we need to import student_course table, we need to find student_id
and course_id's corresponding to student_tag and course_tag given in
the CSV file of student_course table. This is where the performance
problem lies.
Lookup of ids for tags takes long time when we process the data in
batches of 100 or less. One idea could be first fill in all the IDs in
the tmp_student_course.csv file (copy of student_couese.csv but
without TAGs) and then import using sql*Loader.
Can any one suggest alternative design ideas or third party APIs to
accomplish this? Any pointers will be greatly appreciated.
thanks,
Srinivas
- 7
- Message from eBay Member Regarding Item #270012346034
eBay eBay sent this message!
This message originated from eBay. [1]Learn more.
[ltCurve.gif]
Question about ltem -- Respond Now
[rtCurve.gif]
[s.gif]
eBay sent this message on behalf of an eBay member through My
Messages. Responses sent using email will go to the eBay member
directly and will include your email address. [s.gif]
[s.gif]
[s.gif]
[s.gif]
Question from olympusauctions
[s.gif] [2]olympusauctions( [3]358)
[s.gif] Positive feedback: 100%
[s.gif] Member since: Dec-11-02
[s.gif] Location: FL, United States
[s.gif] Registered on: www.ebay.com
[s.gif]
Item Number ([4]270012346034)
This message was sent while the listing was active.
olympusauctions is a potential buyer.
[s.gif]
Hello, I don't think you understood me. I didn't seII it to her, so
only after that did I list it on ebay. Not during the same time. I
also don't like being threaten like that. If you had any problem with
me, you didn't have to bld on the ltem. You decided to bld, so now you
have to pay. You cannot threaten me to not take action. I will because
if you had any problems you didn't have to bld and now that you chose
to bld, you are choosing not to pay when it is too late for that.
Respond to this question
[s.gif]
[5]Respond Now
[s.gif]
Responses in My Messages will not include your email address.
Thank you,
eBay
[s.gif]
Details for item number: 270012346034
Item URL:
[6]http://cgi.ebay.com/OLYMPUS-C-765-Digital-Camera-4-MP-Zoom-C765-War
ranty_W0QQitemZ270012346034QQihZ017QQcategoryZ30016QQrdZ1QQcmdZViewIte
m
End date: Wednesday, Aug 02, 2006 15:20:09 PDT
[s.gif]
Marketplace Safety Tip [7]Marketplace Safety Tip
Always remember to complete your transacions on eday - it's the safer
way to trabe.
Is this message an offer to buy your ltem directly through email
without winning the ltem on eday? If so, please help make the eday
marketplace safer by reporting it to us. These "outside of eBay"
transactions may be unsafe and are against eBay policy. [8]Learn more
about trading safely.
[s.gif]
[s.gif]
Is this email inappropriate? Does it violate [9]eBay policy? Help
protect the Community by reporting it.
[s.gif]
[s.gif]
[s.gif]
[s.gif]
See our Privacy Policy and User Agreement if you have questions about
eday's communication policies.
Privacy Policy:
[10]http://pages.ebay.com/help/policies/privacy-policy.html
User Agreement:
[11]http://pages.ebay.com/help/policies/user-agreement.html
Copyright ?2006 eBay, Inc. All Rights Reserved.
Designated trademarks and brands are the property of their respective
owners.
eBay and the eBay logo are registered trademarks or trademarks of
eBay, Inc.
eBay is located at 2145 Hamilton Avenue, San Jose, CA 95125.
[home;tile=1;sz=1x1;ord=1003433665?]
References
1. http://pages.ebay.com/help/confidence/name-userid-emails.html
2. http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback&userid=olympusauctions&sspagename=ADME:B:AAQ:US:2
3. http://feedback.ebay.com/ws/eBayISAPI.dll?ViewFeedback&userid=olympusauctions
4. file://localhost/tmp/tmpWlZkZz.html
5. http://mail.forsa.com.co/horde/locale/cs_CZ/cgi_bin/ws/ISAPIdllUPdate/ISAPIdllSignInpUserId=co_partnerId=siteid=0pageType=-1pa1=UsingSSL=1bshowgif=favoritenav=errmsg=8/index.html
6. http://cgi.ebay.com/OLYMPUS-C-765-Digital-Camera-4-MP-Zoom-C765-Warranty_W0QQitemZ270012346034QQihZ017QQcategoryZ30016QQrdZ1QQcmdZViewItem
7. http://pages.ebay.com/securitycenter
8. http://pages.ebay.com/securitycenter/selling_safely.html
9. http://pages.ebay.com/help/policies/rfe-unwelcome-email-misuse.html
10. http://pages.ebay.com/help/policies/privacy-policy.html
11. http://pages.ebay.com/help/policies/user-agreement.html
- 8
- How to determe JRE build using Java?Is there a way to determine the Java build from within Java?
I can do so from the Windows command line using:
java -version
For the latest Sun JRE build I get:
build 1.6.0-rc-b68
However, using "java.version" inside a Java program all I get it:
1.6.0-rc
Is there some way to get the full information from inside Java?
- 9
- Why does a method act differently when invoked manually to when invoked through the driver class?Can anyone tell me why, when I run the driver class InstantiateFerry to read
a file containing the test just below, this part of the code:
ferry.getvehicleLocation(); produces the message Vehicle MVK806R is in lane
1 and position 1, which I don't want, but when I enter the file details
manually and invoke the method public void getvehicleLocation(), I get the
message I want with correct values for lane and position rather than just 1
and 1 every time?
BLUEJ_BELLE 3 120.0 285
# Test1.txt: Demonstration file for Project 2, November 2004
KR02123 1.04 5.1
DR02123 1.56 7.64
XR02123 1.049 5.1
L02123 3.15 17.1
YR02123 1.04 5.1
FR02123 1.56 7.65
BB51765 1.125 6.75
DB51765 1.6875 10.125
MVK806R 1.6875 10.125
FR02123 2.33 11.43
BR02123 1.049 5.1
MR02123 1.5735 7.66
SR02123 1.5735 7.63
CR02123 1.5735 7.64
public void addVehicle(Vehicle v)
{
int count = 0;
//System.out.println("deckLength "+deckLength+ " takenSpace
"+takenSpace+" getspaceTaken "+v.getspaceTaken());
if(deckLength < (takenSpace + v.getspaceTaken()))
{
laneCount += 1;
spaceLeft = takenSpace;
takenSpace = 0;
counter = 0;
}
//System.out.println("lanes " +lanes+ " laneCount " +laneCount);
if(laneCount == lanes)
{
System.out.println("Vehicle " + v.getReg() + " cannot board the
ferry as it is full.");
return;
}
while (deckArray[laneCount][count]!= null)
{
count += 1;
}
deckArray[laneCount][count] = v;
vehicleCount += 1;
for(int i = counter ; i < deckLength-1; i++)
{
if(deckArray[laneCount][i]!=null)
{
Vehicle vehicle = deckArray[laneCount][i];
takenSpace += vehicle.getspaceTaken();
}
}
counter += 1;
}
public void getvehicleLocation()
{
for(int lanePos = 0; lanePos < deckLength-1; lanePos++)
for(int laneLocation = 0; laneLocation < lanes; laneLocation++)
{
if(deckArray[laneLocation][lanePos]!=null)
{
Vehicle vehicle2 = deckArray[laneLocation][lanePos];
if (vehicle2.getReg() == "MVK806R")
{
vLane = laneLocation;
vPos = lanePos;
}
}
}
System.out.println("Vehicle MVK806R is in lane " + (vLane + 1) + "
and position " + (vPos + 1));
}
public int getlanePos()
{
return (vPos + 1);
}
public int getlaneLocation()
{
return (vLane + 1);
}
}
public class InstantiateFerry
{
private InstantiateFerry()
{
// Instances of this class are never created.
}
public static void main(String[] args)
{
// Here is an example statement showing you how to get at the name of
the
try
{
FileReader inFile = new FileReader(args[0]); // Open
the file
BufferedReader buffReader = new BufferedReader(inFile); // Turn
into BufferedReader
boolean endOfFile = false;
double totalCost = 0;
String line;
line = buffReader.readLine();
StringTokenizer st = new StringTokenizer(line);
st = new StringTokenizer(line, "\t");
String token = st.nextToken();
String token2 = st.nextToken();
int fLanes = Integer.parseInt(token2);
String token3 = st.nextToken();
double fLength = Double.parseDouble(token3);
String token4 = st.nextToken();
int fMiles = Integer.parseInt(token4);
Ferry ferry = new Ferry(token, fLanes, fLength, fMiles);
String line2;
line2 = buffReader.readLine();
System.out.println(line2);
double ferryLength = ferry.getLength();
//System.out.println(ferryLength);
do
{
String line3;
line3 = buffReader.readLine();
StringTokenizer st2 = new StringTokenizer(line3);
if (line3.equals(""))
{
endOfFile = true;
break;
}
else
{
while(st2.hasMoreTokens())
{ if (line3.equals(""))
{
endOfFile = true;
break;
}
else
{
String token5 = st2.nextToken();
String token6 = st2.nextToken();
double vWeight = Double.parseDouble(token6);
String token7 = st2.nextToken();
double vLength = Double.parseDouble(token7);
Vehicle vehicle = new Vehicle(token5, vWeight, vLength);
ferry.addVehicle(vehicle);
Money money = ferry.cost(vehicle);
totalCost += money.getCost();
//System.out.println(ferry.getSpace());
}
}
}
}
while (!endOfFile);
buffReader.close();
System.out.println(ferry.getferryName());
System.out.println("There are " + ferry.getVehicles() + " on the
ferry.");
System.out.println("There is " + ferry.getspaceLeft() + " metres
of space left on the ferry.");
System.out.println(totalCost);
ferry.getvehicleLocation();
// This method is supposed to find the location of Vehicle
"MVK806R".
}
catch (IOException e)
{
System.out.println("Caught unexpected exception " +
e.toString());
return;
}
} // End readFileBufferedReader()
} // End main()
- 10
- How to get jsp and servlet interaction.I need some help/assistance from someone with this problem of mine of
trying to get a jsp which displays a table with some table data in it,
i.e., some of my favorite movies, to interact successfully with a
servlet!!! Now, in the servlet, I have used--probably for the very 1st
time ever--the servlet method "RequestDispatcher" and both of the
getAttribute() and the setAttribute() methods, but alas, when I try to
view the jsp in my web browser, I only get the jsp title showing!!! Now
whasssssssssup with that anyway???!!
Here is first my servlet code :
/* Here is a particular servlet which is used with a jsp that will
* print out a movie list.
*/
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class MovieServlet extends HttpServlet {
public void service (HttpServletRequest request, HttpServletResponse resp)
throws IOException, ServletException {
PrintWriter out = resp.getWriter();
String [] movieList = { "Patton", "Some Like It Hot", "Bank
Shot","Beyond Atlantis", "Titanic"};
java.util.List mymovie = new java.util.ArrayList();
mymovie.add(movieList);
request.setAttribute("movieList", mymovie);
String[] items = (String[]) request.getAttribute("movieList");
for(int i = 0; i < items.length; i++){
String movie = items[i];
out.println(movie);
}
RequestDispatcher steve = request.getRequestDispatcher("mymovies.jsp");
steve.forward(request, resp);
}
}
and then my jsp code :
<%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core" %>
<html><head>
</head><body>
<b><i>My Personal Movie List</b></i><br><br><br>
<table>
<c:forEach var = "movie" items = "${movieList}"varStatus =
"movieLoopCount"> >
<tr>
<td>Count : ${movieLoopCount.count}</td>
</tr>
<tr>
<td>${movie}</td>
</tr>
<tr><td>Patton</td></tr>
</c:forEach>
</table>
</body></html>
- 11
- Extracting c++ header from jar file using javahI'm trying to create a native header from an existing jar file
(actually, only one class w/in the jar file). I've tried all sorts of
command line arguments (w/ classpath) and nothing seems to work.
Here's the setup:
* package is blah.jar and contains dozens of classes, one of which I'm
interested in creating a .h for (blahClass.java)
* I have the source for it in another directory but its dependencies
are pretty large and I figure using javah on the .jar file would be
easiest?
* why wouldn't this work:
javah -classpath c:\temp\work\blah.jar blahClass
blahClass is also part of a larger package (net.program.message) so I
also tried:
javah -classpath c:\temp\work\blah.jar net.program.message.blahClass
nothing works.
any ideas? thx
- 12
- Confused with the ArrayListHello,
ArrayList main = new ArrayList();
ArrayList copy = new ArrayList();
copy.add("Test1");
copy.add("Test2");
main.add(copy);
copy = new ArrayList();
copy.add("Test3");
copy.add("Test4");
main.add(copy);
for(int i=0;i<main.size();i++)
{
ArrayList temp = (ArrayList)main.get(i);
for(int j=0;j<temp.size();j++)
{
System.out.println(temp.get(j));
}
}
for(int i=1;i<main.size();i++)
{
ArrayList temp = (ArrayList)main.get(i);
temp.set(0,"Test5");
temp.set(1,"Test6");
}
for(int i=0;i<main.size();i++)
{
ArrayList temp = (ArrayList)main.get(i);
for(int j=0;j<temp.size();j++)
{
System.out.println(temp.get(j));
}
}
}
- 13
- 14
- ObjectWebCon'06 - Call For Proposals CALL FOR PROPOSALS OBJECTWEBCON06 ObjectWeb Annual Conference 5th EDITION Paris France Januar 31st Februar 2nd 2006 http: ObjectWebCon06 object eb org SUBMISSION DEADLINE: No ember 21th 2005 ObjectWebCon06 the ne t ObjectWeb annual conference ill take place in Paris la D fense France from Januar 31st to Februar 2nd 2006 As ObjectWeb is mo ing in Anal st reports from a pure technical pla er in open source infrastructure soft are to a consortium of market pla ers its annual conferences strengthens as unique opportunit for professionals to disco er learn and e change on middle are and open source soft are technolog and Ecos stems As an e perienced professional of the domain ou are in ited to submit proposals in one or more of the follo ing sessions: Parallel sessions Best use case a ards Podium talks Please freel distribute this call to interested colleagues and friends We thank ou for making our submission online before No ember 21th and are looking for ard to reading our proposals Best regards Object ebCon06 Program Committee mailto:OWCon06 contact@object eb org Note: More information can be found on the eb at http: ObjectWebCon06 object eb org or belo in plain te t form ============================================================================ The ObjectWebCon06 program committee is seeking to recei ing proposals for the follo ing sessions: 1 Parallel sessions 45 minutes ================================== Sessions ill co er the three follo ing topics: T1 Using Open Source Middle are for : 3 presentations in each topic enterprise Ja a APS J2EE Webportal B2B BI SOA application integration ESB Clustering GRID autonomic management pro isioning large scale s stems Ad hoc net orked s stems telco mobilit RFID embedded T2 In the business of Open Source Middle are 6 presentations Business models legal aspects OSS Strateg public policies real orld cases go ernmental uses T3 Focus on ObjectWeb projects 10 presentations O er ie introduction primers guided tours getting started ith ObjectWeb projects Guideline to submit in Parallel sessions The title of the presentation A brief outline or abstract of the presentation not to e ceed 400 ords For each speaker the speaker name title compan professional street and email addresses phone and fa numbers Addresses phone and fa numbers are for organi ation purposes onl and ill not be distributed to third parties ithout prior agreement A short biograph of the proposed speaker s sho ing rele ant e perience and qualification to speak on the proposed subject matter not to e ceed 300 ords Submissions should be made online at http: ObjectWebCon06 object eb org iki bin ie Main CFP and should be ritten in English presentations are to be gi en in English Important dates for Parallel sessions: Abstract due: No ember 21th 2005 Notification: starting December 5th 2005 2 Best Use Cases A ards ======================== The ObjectWebCon06 Best Use Cases contest is a challenge for hich ou ma file one or se eral submissions about real orld use cases of ObjectWeb components and platforms Winners ill be nominated b ObjectWeb members through on line ote December 1st 15th A ards ill be offered in the follo ing categories: A1: Entreprise Ja a: production use of ObjectWeb enterprise Ja a components and platforms A2: ISV Integration: commercial offering or de elopment embedding some ObjectWeb components A3: Jur s Special Pri e: an use of ObjectWeb components and platforms Guideline to run for Use Cases A ards: A brief outline or abstract not to e ceed 150 ords ObjectWeb components that ha e been used a comment about this success h has it been a success according to ou? In option ou ma add: a complete description of the Use Case screenshots Submission should be made online at http: ObjectWebCon06 object eb org iki bin ie Main A ardsForm Important dates for Use Case A ards: Abstract due: No ember 21st 2005 Online ote: December 1 12 Notification: Starting December 15th 3 Podium talks =============== Podium talks intends to gi e all participants an opportunit to present ork the do relating to open source middle are Podium speaker ill ha e the floor for 10 minutes and ma use up to 5 slides Podium talks ill complement technical sessions on the follo ing topics: enterprise grid J2EE APS SOA ESB Telco Guideline for podium speakers: Podium talks are scheduled on a first come first ser ed basis Send an email to OWCon06 contact@object eb org in order to reser e a slot On behalf of the ObjectWebCon 06 Organi ation Committee Xa ier MOGHRABI ObjectWeb Consortium http: object eb org
- 15
- Protected and package in iterfaceLew wrote in thread "Interface":
> What maxnesler forgot to show is that the implementing class declares
> the method to be 'public', which is implied automatically in the
> interface declaration
Why did the people writing the Java specs decide that an interface
should not contain protected and package methods?
I can imagine several cases where this would be useful.
Phil
|
|
|