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

  • Any way to get back to the old iPod view in iTunes 7?

    I'd prefer it if when I connected my iPod that iTunes acted the way it did before iTunes 7 -- ie, iPod shows up in Source list, and the list of music on the iPod is displayed in Browse view. With iTunes 7 each time I connect my iPod I get the iPod su

  • Mac won't connect to tb display

    Hello, I connected my mid 2009 macbook pro 13 inch with OS X Yosemite to my 27" tb display and nothing happened at all.  No change in the screen and no indication that there was any sort of monitor or cord connected to the computer.  I tried to detec

  • Acrobat Pro XI isn't detecting a scanner

    I'm running Adobe Acrobat Pro XI on Windows 7 Enterprise SP1 machine.  When I go to File, Create, PDF from Scanner and choose either Color Image or Custom Scan it's not showing any scanners available (custom scan shows "Please Select a Device") if I

  • Migration from Flex 3.3 to Flash Builder 4 problems.

    So, I've been working on a Flex Builder 3.3 project for some time now. One of the things I had expected from Flash Builder 4 would be the ability to simply import a fully operational (bug free) 3.3 project. Wrong. My 3.3 project uses an imported FLVP

  • File recovery and file structure?

    Bummer: Some combo of Excel, Google Earth, and my involvement have left my Sandisk thumbdrive corrupted. Disk Utility sees the drive but can't mount it and can't repair it. I used Sandisk's RescuePRO software which pulled off lots of files, but most