![]() |
| ||
| how to add swf file as JButton i want to use a JButton with a rollover sound..so created a button with a sound using adobe macromedia flash... how can i display it in the swf button in jpanel?? here is the button..button.swf import java.awt.*; |
| ||
| Re: how to add swf file as JButton Well, I can at least say that that's nicely formatted. Otherwise ..... Did you have some sort of question you wished to ask? |
| ||
| Re: how to add swf file as JButton yes..i wanted to use a swf as JButton..how do i do that?? sorry i wasn't done yet with the post when you replied..:) |
| ||
| Re: how to add swf file as JButton In that manner, you can't. Create an image that you can create an ImageIcon from to set as the button lable (see the API docs for JButton) and create a Sound file and use a MouseListener to play it with the MouseEntered event (See the Swing tutorials). |
| ||
| Re: how to add swf file as JButton You better look into Java and Flex |
| ||
| Re: how to add swf file as JButton .,uhhm..can you give me a sample code??im not really good at these kind of instructions..I'm just new to java prog..the code that i posted was from a software called guigenie,it lets me drag components in the frame and gives the code.. |
| ||
| Re: how to add swf file as JButton what is java and flex? |
| All times are GMT -4. The time now is 11:22 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC