• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

SWT MessageBox on mac

 
Greenhorn
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
Nick
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!