• Post Reply Bookmark Topic Watch Topic
  • New Topic

Shell keeps popping up when creating a menu tray

 
Fictus De la Pjedero
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I would like to create an application that creates a system tray and on base of the contents of the tray some actions are perfomed.
I have found the following code on the internet.
But if I run this the menu tray is created but also an empty screen is popping up (I think thats this part of the code shell.setBounds(50, 50, 300, 200); )

How can you create a menu tray without having the shell being pop-upped. (so only a menu tray is being created)

 
Rob Spoor
Sheriff
Posts: 20816
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Use Code Tags. You can use the edit button to add them to your existing post.

I take it this is an SWT problem? Because the classes Shell and Display are not familiar to me.
 
Fictus De la Pjedero
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Please Use Code Tags. You can use the edit button to add them to your existing post.

I take it this is an SWT problem? Because the classes Shell and Display are not familiar to me.


The class shell comes from org.eclipse.swt.widgets and the class Display too.
I'd found this snippet code on the Internet.

P.s. I've edited my previous message with the Code tags. .
 
Rob Spoor
Sheriff
Posts: 20816
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please read your private messages?
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just commenting the statement works.
But ofcourse, this may be not what you want
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!