This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Rebuilding contents in a custom Dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Rebuilding contents in a custom Dialog" Watch "Rebuilding contents in a custom Dialog" New topic
Author

Rebuilding contents in a custom Dialog

Nicolai Krog
Greenhorn

Joined: Feb 18, 2006
Posts: 3
Hi - I just signed up here, hope I am welcome to ask a question

I am building a custom Dialog for a JFace/SWT application. For this dialog I need a button that updates all the content of the dialog.

My dialog has (of course) an implementation of the method createDialogArea(Composite parent), and since this method contains all logic neccesary to rebuild the dialog, I would like to just call it again from my update-button listener.

In my listener on the update button I have tried:

createDialogArea(super.getShell())

or

createContents(super.getShell())

But nothing happens....

What is the right approach

Best regards,

Nicolai
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Welcome to Javaranch!

This forum is for JSF (Java Server Faces) questions. I'll move this to the Swing/AWT/SWT/JFace forum for you.


GenRocket - A Test Data Generation Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rebuilding contents in a custom Dialog
 
Similar Threads
Rebuilding contents in a custom Dialog
JColorChooser and StyledEditorKit foreground
Thoughts about client/server startup
how to access method of js from the popup
Updating Dialog Box