File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to make JDialog has default microsoft window color and style Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to make JDialog has default microsoft window color and style " Watch "How to make JDialog has default microsoft window color and style " New topic
Author

How to make JDialog has default microsoft window color and style

david arnold
Ranch Hand

Joined: Apr 10, 2009
Posts: 133
Hi, I put the following code in a Structs action class, during the action process, I pop up a message.



The message is java look and feel, how could I make it like default window style.

Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Do you mean Struts? Like a Struts web application?

Swing stuff is meaningless in a Struts action class: you're writing a web app, not a desktop app.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39791
    
  28
This thread would sit better in the Struts forum. Moving.
david arnold
Ranch Hand

Joined: Apr 10, 2009
Posts: 133
Thank you David.

Yeah, I know this is web app, but i do not know other ways. I need to do two things, afetr one thing is done, i need to pop up a message to inform user, when user read pop up message and click OK, i need continue to do something else, i just want to do two things together without making them to two actions. Now it works fine, the message works fine, but it is java look and feel, so i am wondering if I can make it like window look and feel. I did it before, but that is desktop app, not like this web app.

Any ideas or advice?

Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Campbell Ritchie wrote:This thread would sit better in the Struts forum. Moving.

Not really; there's nothing Struts-specific about popping up a browser dialog/window/etc.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

tony xue wrote:Any ideas or advice?

You can use a browserJavaScript dialog box or use something like LightBox/etc. to get a similar effect without popping up a new window.

Either way, this seems more a JavaScript and/or HTML issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make JDialog has default microsoft window color and style