From: David ‘Bombe’ Roden Date: Sat, 17 May 2008 17:49:45 +0000 (+0000) Subject: set correct tooltip when a project is added X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6689cf194008cd0985bb927da3c2a0443a1fdfb3;p=jSite2.git set correct tooltip when a project is added git-svn-id: http://trooper/svn/projects/jSite/trunk@909 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java index 843fd1f..636193c 100644 --- a/src/net/pterodactylus/jsite/gui/MainWindow.java +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -247,7 +247,9 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop */ void addProject(Project project) { ProjectPanel projectPanel = new ProjectPanel(swingInterface, project); + int newTabIndex = projectPane.getTabCount(); projectPane.add(project.getName(), projectPanel); + projectPane.setToolTipTextAt(newTabIndex, project.getDescription()); project.addPropertyChangeListener(this); }