• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make JDialog has default microsoft window color and style

 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49827
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread would sit better in the Struts forum. Moving.
 
david arnold
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic