Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SWT MessageBox on mac

Nick Bowen
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys!

So....I'm making a MessageBox dialog for a user to confirm whether or not they want to do something. Calling it as such:

MessageBox confirmDeleteMessageBox = new MessageBox(table.getParentControl().getShell(), SWT.ICON_WARNING| SWT.OK | SWT.CANCEL);

On windows, it looks perfect, the warning icon shows up in the dialog and everything. HOWEVER on the mac (GRRRRRRR) , the icon that shows up is the silly default mac icon that is like a pencil, ruler and paper.

Now I"ve tried this without specifying an icon for the dialog, but mac still forces it to have their icon. So my theory was that mac just didn't have these types of icons at their disposal or what have you, but we're including the swt jar file with our project so it should definitely have access to it. I'm guessing that there's just some simple mac specification that I'm missing here.

Any help is greatly appreciated!! Thank you
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic