From 6689cf194008cd0985bb927da3c2a0443a1fdfb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 May 2008 17:49:45 +0000 Subject: [PATCH] set correct tooltip when a project is added git-svn-id: http://trooper/svn/projects/jSite/trunk@909 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/jsite/gui/MainWindow.java | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.7.4