How to set an image in place of Cursor ?
How can I set an image in place of the common arrow in my application ?
Has it sth to do with Toolkit.createCustomCursor ?
Where is the right place to invoke this method ?
Then I suppose parent.setCursor must follow ?
Do you know the procedure ?
thanx.
setCursor(new Cursor(Cursor.HAND_CURSOR));
Similar Messages
-
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. } -
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] -
6300 How to set ringtones/images/photos
Please tell me how to set ringtones/images/photos to individual contacts/numbers. If you have more than one number for a contact can you set up each one separately. ie home/mobile/office etc.
Thanks
Solved!
Go to Solution.to perform all the mentioned operations(expect assigning different tones to different numbers of the same contact,which isn't possible,as already indicated in the previous post)you need to move the contact to the phone memory. now what you can do is copy all the contacts to the phone memory as well.then after that you can set all the options for the your contacts.
but, after copying the contacts to phone memory,the contact list will have two entries to the same contact(of both the memories).If you don't want them in that manner then you can configure the current memory in Contacts->Settings and set that option as 'Phone'.But this will now be the default memory for your new contact,so be careful!! Still any doubts??
Was this post of some help? Click 'Kudos' star on the right hand side of this post. Your gesture will be highly appreciated! -
i just want to know that how to set an image on JFrame.
thanks in advancedear moazzam
why are you coming here in the forms when you have very brillient java certified teacher
who knows every thing:)
just mail him and ask this questain from him.
im sure you will be given a good replay
take care ! -
How to set an image to be a chapter heading?
Hello folks. I am trying to work out how to set an anchored image - which I am using as a chapter heading - to be detected as a chapter heading when I generate a Table of Contents?
I don't think the images being anchored is an issue. Since the same principle would apply to non-anchored images.
I'm just anchoring the header images so they remain in place with the text as I am still editing the text of the document. But here is a screenie. As you can see, the titles "Package Contents" and "Guidelines" are both graphical elements.
What I want, is that when I generate my Table of Contents, the software will output the text ""Package Contents ... 3" and "Guidelines ... 3" instead of "[image] ... 3"
Thus why I wonder if I can in essence, mark or tag the images, then have the mark or tag displayed in the TOC. -
How to keep an image "in place" within a document using Pages?
Here's what I want solved. When I position an image (like a jPeg photo) within a document I take a great amount of care as to how it looks in the layout. BUT, if I add a new line of text ABOVE the image, all the text moves, but the image stays in place. When the text above moves down, any kind of "art direction" is lost.
Yes, I know there is a way to "LOCK" the image, but that doesn't solve this issue. The formatting still moves all the text and the image is stuck, LOCKED or UN-LOCKED.
I want to know if there is a way to KEEP THE IMAGE in place within the text. I want to be able to edit above the image and not have the headache of needing to move the image every single time I change something above it.
Does this make sense?
I have to assume there is a way to do this, I just haven't figured it out.
I am using Pages 09.
thanks,
Mike C(a little bit more)
This text below is from the Pages help menu, but (sadly) This does NOT solve my problems.
Locking and Unlocking Floating Objects
You can lock floating objects to avoid inadvertently moving them as you work. Inline objects cannot be grouped or locked.
After you lock individual or grouped objects, you can’t move, delete, or modify them in any way until you unlock them. However, a locked object can be selected, copied, or duplicated; when you copy or duplicate a locked object, the new object is also locked.
To lock a floating object:
Select the objects you want to lock, and then choose Arrange > Lock.
To unlock a floating object:
Select the objects you want to unlock, and then choose Arrange > Unlock. -
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?
RegardsSwing 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. -
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 do set up image based navigation bar in DW CC?
How do you set up images as the list members that form a navigation bar?
Spry is gone, true, but CSS most definitely is part of DWCC...
http://tv.adobe.com/watch/learn-dreamweaver-cc/using-the-css-designer-panel/
You should be able to follow a css tutorial after familiarizing yourself with the CSS Designer.
If you don't understand html and css in and of themselves, and you have a budget, you may want to get the Menu Magic DW Extension from Project VII. That would allow you to use the DW Design View interface to make a menu.
If you have a fair understanding of the basics though, any "jquery menu" or "pure css menu" available freely on the web would do the trick. The vast majority of them come with a quick how to that includes mostly copy/paste instructions. -
How to set ASDM image on ASA remain factory-default
Hi, Cisco Support Community
I want to configure an ASA to facotry-default using the following commands.
# configure factory-default
# wr mem
But when I use above commands, ASDM is to be unset !
How can I set ASDM remain factory-default ? I don't want to include " #asdm image disk0:/~~.bin" command in configuration because it is not factory-default configuration.
I don't know why I can do that on ASDM.
First , Upgrade ASA&ASDM on ASDM.
Second Operae factory-default and reboot on ASDM.
Then ASA is to be factory-default and set ASDM image.
I want to do that with CLI.
Thanks in advance.Thank you for reply.
Of course I put ASDM image on ASA.
You know we can launch ASDM on truly factory-default ASA.
I mean how I can reset ASA to that condition using CLI.
a problem is below.
1. put ASDM image on asa flash
2. (configure)#asdm image disk0:~~
3.#show asdm image
>> the image is set
4 (config)#configure factory-default
5.#show asdm image
>> unset
How can I truly reset to factory-default ? -
How to set gif image as wallpaper in Nokia s60v3 m...
Hi, I am using N79 and i want set gif image as wallpaper.when i am trying to set a gif image as wallpaper no animation is coming on standby screen
How to set gif wallpaper on standby screen with animationNot sure but you may have to install this application
http://www.mobidhoom.com/anim-sprite-lite-v233s60v3/
Try and give your feedback..
--------------------------------------------------------------------------------------------------------------------------------------------------------If you find this helpful, pl. hit the White Star in Green Box... -
How to set TOC Image for "Import HTML articles"?
For "Import HTML articles", I set TOC Image (70 x 70 px, PNG) on Folio Builder.
But at Adobe Content Viewer on iPad, TOC Image doesn't appear.
I confirmed on Dashboard, TOC Image for "Import HTML articles" appears correctly.According to the Page 56, 57, 61 of digitalpubsuite_help.pdf (Last updated 10/4/2011) ,
"Change article properties" shows how to change TOC preview.
I changed the TOC previews of some Stacks and the viewer table contents on iPad shows the TOC previews I expected.
But for the HTML Stack (Import HTML article), the viewer table contents on iPad shows the thumbnail of HTML content (not the TOC previews).
I confirmed on TOC Preview of Folio Builder and Dashboard of DPS,
TOC preview for "Import HTML articles" appears correctly.
What am I wrong? -
How to Set icon/image programatically in ADF before page loads
This is my UI:
Depends on the condition i want to set icon/image programatically in my java code.Before page load im calling this method.
So i couldnt take binding value also,it throws null pointer exception.Then i tried setting icon/image programatically.
<af:commandImageLink text="settings" icon="#{bean.iconsettings}" binding="#{bean.bind}"> </af:commandImageLink>
My bean:
private RichIcon iconsettings;(its getters and setters)
private void method(){ // method
if(cond){
this.iconsettings="/images/20.jpg"; //trying to set icon in a string.but it throws me error that cannot set RichIcon to string.
else
this.iconsettings="/images/19.jpg";
Could any one tell me how can i set icon/image in java code.Before page loads im performing all above said tasks.Please help.Well, you set the icon property to a bean method, which you have done. The bean method however need to have the signature
public String getIconsetting()
// your code returning hte path to the icon
if(cond){
return ="/images/20.jpg"; //trying to set icon in a string.but it throws me error that cannot set RichIcon to string.
else {
return ="/images/19.jpg";
The bindproperty is not needed, remove it and remove the RichIcon Iconsettings too´as it's not needed to and is the wrong type anyway.
Timo -
How to set an image as a background in pages '09
I'm trying to set an image as a background in pages... PLEASE HELP!!
Hi Jerry,
All the arrange and wrap options are greyed out for me (trying to help my daughter with a Monster background and failing miserably), do you have any suggestions for where I may be going wrong?
Thanks
Derek
Maybe you are looking for
-
User-Exit/BADI/BTE Search
Guys, Got fed-up trying all the other programs which (unsucessfully) try to find user-exits etc. Here is my attempt... Any comments would be most welcome.. *& Report ZPJA_PM002 (V2) &* *& Text Elements:
-
Hi, I am creating an application for a user to enter configuration data for running a test. I would like to have the user click on items on tree, and a dialog will pops up with a cluster control. Once they change settings in the cluster control and p
-
Solaris containers and Fiber connection
Hi guys, I have sucsessfully migrated solaris 8 system to solaris 10 containers. and also mounted some RAID enabled partition on non global zone without any issue. now i need to connect a fiber channel to my host OS (solaris 10) and add the SAN parti
-
HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA APPLICATION
HI expects, HOW COULD CONNECT FROM SAP SYSTEM TO THIRD PARTY JAVA or . DET APPLICATION.please provide me some scenarios and documents.please help me.
-
Alot of items in one reservation
Hi Experts , I need to enter a large amount of items in reservation .. I have it in Excel sheet .. there is a batch input for reservation HO wcan I use it Thanks in advanced