1 Replies - 1086 Views - Last Post: 14 June 2012 - 12:03 PM Rate Topic: -----

#1 joannesablad  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 56
  • Joined: 24-April 11

Add Slideshow in GUI Java

Posted 14 June 2012 - 08:31 AM

how to add a slide show of different pictures in java in a tabbed pane!!


i've added one pic via this code.


public JButton pichaw;
ImageIcon ic=new ImageIcon("Foto.jpg");
pichaw=new JButton(ic);
tabbedPane.addTab("Foto", pichaw);
add(tabbedPane, BorderLayout.CENTER);
	

//	




With this code, i can see a picture that i have added in Tabbed Pane of my GUI Application.. But i want to add a slide show of different pictures in a TabbedPane in GUI. Is there any way?

Is This A Good Question/Topic? 0
  • +

Replies To: Add Slideshow in GUI Java

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Add Slideshow in GUI Java

Posted 14 June 2012 - 12:03 PM

Don't see why you would use a Tabbed Pane for that... you want the user to be able to select the tab that contains a particular picture ? If you have more than 20 pictures your tab will be very ugly.

Are you sure you are not rather thinking about a JPanel with CardLayout ?
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1