How to set background image in jlist
Hi all
is there a way for setting an image as jlist 's background?
I need that this image is trasparent.
Any idea or usefull link?
Regards
Swing related questions should be posted in the Swing forum, but there is no need to repost since all the information is available to you in the forum or the API.
First, read the JList API and follow the link to the Swing tutorial on "How to Use Lists". It will show you how to create a custom renderer. You will need by make your renderer non-opaque to see the background image.
Next you can search the Swing forum for examples of how to add an image as a background image. Most of the examples are for a JPanel, but the concept is the same.
Similar Messages
-
Flex 4 Mdi canvass, how to set background image..?
Hi.,
Now i try to use mdi canvass background image,how to set background image in mdi canvass in flex 4..
With Regards
LinFlex-In the past flex 3 version, there is an attribute call <flexlib:MDICanvas backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
to set it. However it has problem in Flex 4 because of 'halo' and 'spark' theme library changed.
The following is my post that still haven't found the answer.
Dear all,
We have a project that doing migration from flex 3 to flex 4. We use flexlib the latest version of
flexlib - 2.5 - flex4.zip.
However we confronted problems that several of attributes that flex 4 doesn't support:
Constraints are listed as follows:
1) <flexlib:MDICanvas backgroundImage="@Embed(source='/imgFolder/imgFile.png')/>
2) <flexlib:MDICanvas backgroundSize="auto"/>
3) <mx:ApplicationControlBar barColor="#000000">
original error message:
====================================================
Description Resource Path Location Type
The style 'backgroundImage' is only supported by type 'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'. MainView.mxml /osss/flex_src/hk/gov/labour/osss/view line 242 Flex Problem
Description Resource Path Location Type
The style 'backgroundSize' is only supported by type 'flexlib.mdi.containers.MDICanvas' with the theme(s) 'halo'. MainView.mxml /osss/flex_src/hk/gov/labour/osss/view line 242 Flex Problem
Description Resource Path Location Type
The style 'barColor' is only supported by type 'mx.containers.ApplicationControlBar' with the theme(s) 'halo'. MainView.mxml /osss/flex_src/hk/gov/labour/osss/view line 227 Flex Problem
Regards,
Man Pak Hong, Dave
manpakhong
[email protected] -
Flex4 How to set background image in Vgroup..?
Hi.,
I have using v flex 4 vgroup to set background image., but image was not display.. any change my code.,
<fx:Style>
.backgroundImage
color:#808080;
fontWeight:bold;
fontSize:18;
fontStyle:italic;
contentBackgroundColor : #FFFFFF ;
backgroundImage:Embed("assets/Green Apple.jpeg");
</fx:Style>
<s:VGroup paddingBottom="10" width="100%" height="600" paddingTop="10" styleName="backgroundImage">
<s:Label text="hai hai hai">
</s:Label>
</s:VGroup>
any solution to solve this....
With Regards.,
LinFlex-@Peter
Yes! This works well now. Now I can get repeating background images directly in the code as well as in my CSS style sheets. This looks good and helps me a lot as there are lots of occasions for me using this. I've gotten used to having repeating image backgrounds in HTML and missed that in Flex 3. This feature alone makes moving to Flex 4 worthwhile.
This works fine for me:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<!--make a background for the whole page -->
<s:BorderContainer width="100%" height="100%"
backgroundImage="@Embed('images/bkg/grey_grid.gif')"
backgroundImageFillMode="repeat" >
<!--make an inner area with a graphic background -->
<s:BitmapImage id="legalPad"
source="@Embed('images/bkg/legalPad.gif')"
fillMode="repeat"
left="40" top="100"
width="825" height="200" />
</s:BorderContainer>
</s:Application>
Here are the images I used:
grey_grid.gif
legalPad.gif -
How to set background image in a cell?
I am trying somethign that seems tricky to me...
The image I am using I faded to a solid color on the bottom
half. I set the background image to to left and NO REPEAT but when
the cell grows with content and it stretched beyond the image it
goes blank underneath. How do I set a background color without
going over the background image?
I need them both to be background because I want to use text
over both.
Any ideaS?Color goes UNDER the background image. Just set it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"StarPilot06" <[email protected]> wrote in
message
news:eqqve6$341$[email protected]..
>I am trying somethign that seems tricky to me...
>
> The image I am using I faded to a solid color on the
bottom half. I set
> the
> background image to to left and NO REPEAT but when the
cell grows with
> content
> and it stretched beyond the image it goes blank
underneath. How do I set
> a
> background color without going over the background
image?
>
> I need them both to be background because I want to use
text over both.
>
> Any ideaS?
> -
How to set background image in Dynamic Shell Layout
Experts,
Using dynamic shell layout, how can we create a skin like this http://www.2shared.com/photo/OqXfb5jq/layoutissue.html
Issues :
1)Need to set the background to the page - How to set it in dynamic shell layout.
2)Panel box color to be changed
please advice
thnks
jdev 11.1.2.1Color goes UNDER the background image. Just set it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"StarPilot06" <[email protected]> wrote in
message
news:eqqve6$341$[email protected]..
>I am trying somethign that seems tricky to me...
>
> The image I am using I faded to a solid color on the
bottom half. I set
> the
> background image to to left and NO REPEAT but when the
cell grows with
> content
> and it stretched beyond the image it goes blank
underneath. How do I set
> a
> background color without going over the background
image?
>
> I need them both to be background because I want to use
text over both.
>
> Any ideaS?
> -
How to set background image in JDesktopPane
Hi guys,
i have a jframe linked with jdesktoppane, iand i want to set a background image to the mainframe. How??Search the forum: "+background +image +jdesktoppane"
-
Hi,
i am new Developer in iphone,i want to ask very basic Question, i install iphone SDK 3.1 and using snow leopard 10.6
how to set Background image in iphone sdk 3.1,Sure, search the forum, this question has been asked and answered weekly. Keywords like "background image" taken from your subject line would be a good place to start. So its really not that difficult to think up search words now is it.
-
SETTING BACKGROUND IMAGE IN SAPSCRIPT
HI,
CAN U TELL ME HOW TO SET BACKGROUND IMAGE IN SAPSCRIPT.
REGARDS,
SANJAY.Hi Sanjay,
You can use transaction SE78 to inmport graphics to SAP.In the form painter, you can either include directly to the form using
Edit->Graphic->Create or using the INCLUDE statement in a window.
To use an INCLUDE stanment, goto the window script editor and use menu Include->Graphic. The include can look like this for a bitmap:
/: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON -
How to set a image as a background in a frame
How to set a image as a background in a frame
The following code works well in Notepad command prompt but it is not working on netbeans
I want to set a background image in a frame(awt or swings ny will do) or a panel through netbeans
1. import java.awt.*;
2. import java.awt.event.*;
3.
4. public class ImageFrame extends Frame
5. {
6. private ImageCanvas c;
7. private Image i;
8. ImageFrame( Image i )
9. {
10. this.i = i;
11. c = new ImageCanvas( i );
12. add( c );
13. }
14.
15. public static void main( String[] args )
16. {
17. Toolkit tk = Toolkit.getDefaultToolkit();
18.
20. Image im = tk.getImage( "WashuChan.gif" );
21. ImageFrame f = new ImageFrame( im );
22. f.addWindowListener( new WindowAdapter()
23. {
24. public void windowClosing( WindowEvent e )
25. {
26. System.exit( 0 );
27. }
28. } );
29. f.setSize( 300, 300 );
30. f.show();
31. }
32.
33. private class ImageCanvas extends Canvas
34. {
35. Image i;
36.
37. public ImageCanvas( Image i )
38. {
39. this.i = i;
40. }
41.
42. public void paint( Graphics g )
43. {
44. g.drawImage( i, 0, 0, this );
45. }
46.
47. public Dimension getPreferredSize()
48. {
49. int w = i.getWidth( this );
50. int h = i.getHeight( this );
51. return new Dimension( w, h );
52. }
53. }
54. } -
How to set background as white colour for Bitmap images in sapscripts?
Hi,
Can anyone let me know that How to set background as white colour for Bitmap images in sapscripts?Actually,I am getting grey as background as defualt for my Bitmap images.
Sorry,in my previous question,I posted viceversa.I am mistaken.
Thanks,
BalajiHi,
The problem can be solved by changing the way you save the original image.
Take a look at this thread which explains;
Problem with logo
Regards,
Nick -
I need to set background image in interactive forms. How it is possible ple
Hi,
I need to set background image in interactive forms. How it is possible please explain it step by step.
Regards,
Gurprit BhatiaHey Gurprit,
All you need to do is:
1. drag and drop the Image object from the Library -> Standard tab
2. select the image you want to use
3. position the image on the form where you want
4. right click the image and say "Send to Back"
That should be it!!
Cheers,
Kevin -
Setting background image for repeating frame in .pdf report
Is it possible to set a background image for a repeating frame, and more specifically for a repeating frame rendered in .pdf?
I do not see any standard property in the navigator for images of any sort and the documentation touches only on setting background images for graphs, which is not the intent in my case. I -did- add an HTML table property background="myimage.jpg" but the report is ultimately generated in .pdf format and I was not surprised to see that the image was not rendered.
Does anyone know if setting a background image as described is even possible, and if so, how? A second but less optimum solution would be setting the image as the background for all report pages, again in .pdf.
Many thanks.Hi Raj,
Yes you can have an image in the background. Thats possible if you are using XML forms as an iview or ivew dev in WebDynpro...
Also check this [link|regarding background color change in iview]
Regards,
Piyush
Reward points if this helps!!! -
How to change background image in existing template?
Hi
Current website needs overall change in background image which is already set in template. Is there anyone who knows how to change background image in existing templates?Make a friend with firebug & you could find yourself from where it is getting applied.
For the website you have given the background image it is using is [1] and it is getting set in css of body tag [2]. So Find the css at [3] and modify it OR replace [1] with other image with same file name.
[1] www.hanwha.com/etc/designs/hanwha/images/bg-body.jpg
[2]
body {
background: url("images/bg-body.jpg") repeat-x scroll 50% 0 #FFFFFF;
color: #757373;
font: 14px/18px Arial,Verdana,Helvetica,sans-serif;
margin: 0;
min-width: 979px;
[3]
/etc/designs/hanwha/...../*.css -
How to add background image for a JInternalFrame Container?
JInternalFrame fr=new JInternalFrame();
//we added to desktop,
Container c=fr.getContentPane();
//how can we set background image for a internal frame??
thanks,
waiting,You can let the container's border draw the background image: caution: some will find this image disturbing.
One nice thing about this solution is that you don't have to subclass any components. -
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMS
HI
HOW TO UPLOAD BACKGROUND IMAGES IN SMARTFORMSHi,
goto se78 -> in the menubar click graphic and import to select ur images from ur system .. then click transport button .. it automatically gets into the smartform graphic image list.. then get into transaction smartform and use the image u imported into that..
U can import anykind of image which u have stored in ur pc through se78..
Regards,
Priya.
Maybe you are looking for
-
Rage 3d wireless (V1 I think) broken USB Receiver
So my good lady managed to kill the receiver for her Rage3d Wireless set (walking with laptop and managed to hit a doorframe with the receiver). It was working for a while but obviously busted/twisted, then working if it was "held" in a certain posit
-
TRYING TO DOWNLOAD ITUNES---NOT WORKING
got my new 30gb ipod today. went to the apple web site to download itunes. I clicked on download & the screen shifted to the next screen which indicated it had downloaded. Nothing happens after that. No install wizzard or equivalent. Background....I
-
i try to build my first servlet file. before i install the file into JWS, i compile the program, but it gave me messages like: "javax.servlet.http does not exist", "javax.servlet does not exist". i installed JavaWebServer properly, but cannot find js
-
I want to download iwork for my imac mini
i am new with my imac min and want t now to download iworks but it does not work. what can i do?
-
"Partitioning" option during table creation...
While creating table using "SQL Developer", there is a option on the left pane named "Partitioning". I noticed that this option is available for one or two tables but is not visible for other tables. What this option is for and how it is related to t