Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rebuilding contents in a custom Dialog

 
Nicolai Krog
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic