posted 21 years ago
This is my code. The thing is the gifs showed up on my college computer but they won't work at home. Everything else works fine. The gif files are where they're supposed to be but they don't show.
// set up the ToolBar
tools = new JToolBar();
tools.setLayout(new GridLayout(0,5));
bNew = new JButton("New",
new ImageIcon("new24.gif"));
bNew.setMnemonic('n');
bNew.setBorder(BLACK_BLUE);
bNew.addActionListener(this);
bAdd = new JButton("Add",
new ImageIcon("add24.gif"));
bAdd.setMnemonic('a');
bAdd.setBorder(BLACK_BLUE);
bAdd.addActionListener(this);
bRetrieve = new JButton("Retrieve",
new ImageIcon("find24.gif"));