How do I change the image used on an movie project icon? iMovie seems to select an image at random from the images I imported.

How do I change the image used on an movie project icon?
iMovie seems to select an image at random from the images I imported.

Not sure I understand how to use what you have posted. Here's what my init() looks like:
public void init()
setLayout(new BorderLayout());
p=new Panel();
p.setLayout(new GridLayout(1,1));
callnowButtonURL = getURL(callnowButtonFilename);
if (callnowButtonURL != null)
callIcon = new ImageIcon(callnowButtonURL,"call");
endcallButtonURL = getURL(endcallButtonFilename);
if (endcallButtonURL != null)
endIcon = new ImageIcon(endcallButtonURL);
b=new JButton(callIcon);
b.setBorder(new EmptyBorder(0,0,0,0));
b.setBorderPainted(false);
b.addActionListener(this);
p.add(b);
add(p,"Center");
Now the ActionListener is basically:
public void actionPerformed(ActionEvent e)
if (mybool == false)
<Perform actions here set mybool to true>
Change JButton b to use EndIcon
else
<Perform actions here set mybool to false>
Change JButton b to use CallIcon
Can you clarify how to perform the action I require? You can have a couple of Dukes if you can help me sort this out.

Similar Messages

Maybe you are looking for

  • BUG: Playback Fails When Loading A Random Video - Firmware 1.2

    I've been looking all over on where to post a bug, and for a fix for this bug I found. Not many seem to be having this problem (I assume not many are trying to randomly play a video from a video playlist) BUG: Playback Fails When Loading A Random Vid

  • Image not found in fxz  file produce by ""

    Hi I created a SVG file using inkscape called image.svg. I pasted a small image into inkscape and save it as image.svg. Converted it to image.image.fxz using "JavaFX Production Suite". When I view image.fxz using JavaFX View, it has an error "Loading

  • IPod 30 Gb connection problem

    Hi, I've buy a new 30 Gb iPod and now I'm trying to connect it to my desktop pc (windows xp service pack 2) without success! I've installed iTunes and iPod software then rebooted and then connected the usb cable to my pc and... nothing appens, the be

  • Selection in a JEditorPane

    Hello, MY code is as follows: HTMLDocument document = ( HTMLDocument )jeditorpane1.getDocument(); String htmlString = "<ol><li><p></p></li></ol>"; HTMLEditorKit newKit = jeditorpane1.getKit(); try newKit.insertHTML( document, editorPane.getCaretPosit

  • Session variable in 'rendered'  tag

    Hello, I would like to use a session variable to control whether a component is rendered or not. My idea looks like this: <h:outputText   value=" #{p.p.ql}"    rendered="#{p.p.ql ==  ' <%= session variable here %> '     }" />the synthax ' <%= session