Results 1 to 3 of 3
- 08-29-2009, 08:25 PM #1
Member
- Join Date
- Nov 2008
- Location
- Colorado
- Posts
- 18
- Rep Power
- 0
SWT color creating and image using.
Okay this question has two parts.
1) how do I create a custom color in SWT and use it as a background.
Right now I'm doing this;
labelVistorTeam.setBackground(Display.getCurrent() .getSystemColor(SWT.COLOR_LIST_BACKGROUND));
Would like to change it to:
Color myColor = new Color(255,85,0);
labelVistorTeam.setBangground(myColor);
This does not work
2) I would like to import a image file and set it a a background for my frame.
Any help would be great. I have been looking on line for solution for about 3 hours and can not get it to work. Please help
- 12-08-2009, 07:00 AM #2
Member
- Join Date
- Dec 2009
- Posts
- 2
- Rep Power
- 0
Create Color Object using "Color FORE_COLOR = new Color(Display.getCurrent(), 119,136,153)"
- 12-21-2009, 05:49 PM #3
Similar Threads
-
Creating a label with an image
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:40 PM -
Creating a caret (using an image) in SWT
By Java Tip in forum SWTReplies: 0Last Post: 07-02-2008, 07:51 PM -
creating image using java
By mmahesh_mca in forum New To JavaReplies: 1Last Post: 04-26-2008, 11:23 PM -
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM -
creating an image button when using struts
By yuchuang in forum Web FrameworksReplies: 1Last Post: 05-03-2007, 04:48 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks