- Timestamp:
- Feb 27, 2011, 1:38:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/mainframe/MainFrame.java
r8829 r9393 23 23 24 24 import fr.mael.jiwigo.transverse.util.Messages; 25 import fr.mael.jiwigo.transverse.util. Outil;25 import fr.mael.jiwigo.transverse.util.Tools; 26 26 import fr.mael.jiwigo.ui.MyCollapsiblePanel; 27 27 import fr.mael.jiwigo.ui.browser.BrowserPanel; … … 55 55 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 56 56 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 57 57 58 58 * @author mael 59 59 * Frame principale … … 150 150 private MainFrame() { 151 151 this.setTitle("Jiwigo v" + Messages.getMessage("version")); 152 this.setIconImage(java.awt.Toolkit.getDefaultToolkit().getImage( Outil.getURL("fr/mael/jiwigo/img/icon.png")));152 this.setIconImage(java.awt.Toolkit.getDefaultToolkit().getImage(Tools.getURL("fr/mael/jiwigo/img/icon.png"))); 153 153 this.setLayout(new BorderLayout()); 154 154 jMenuBar = new JMenuBar(); … … 225 225 JScrollPane scroll = (JScrollPane) tabbedPane.getComponentAt(i); 226 226 IThumbnailPanel thumbPan = (IThumbnailPanel) scroll.getViewport().getComponents()[0]; 227 if (thumbPan.getCategory().getIdentifi ant().equals(panel.getCategory().getIdentifiant())) {227 if (thumbPan.getCategory().getIdentifier().equals(panel.getCategory().getIdentifier())) { 228 228 //only if it's not for a re 229 229 if (!(panel instanceof ThumbnailSearchPanel)) { … … 237 237 //is the name of the category 238 238 if (!found && !isSearch) { 239 tabbedPane.addTab(panel.getCategory().getN om(), scrollPaneImagesPanel, new ImageIcon(Outil239 tabbedPane.addTab(panel.getCategory().getName(), scrollPaneImagesPanel, new ImageIcon(Tools 240 240 .getURL("fr/mael/jiwigo/img/closetab.png"))); 241 241 //if it's for a research, the title of the tab … … 244 244 String queryString = ((ThumbnailSearchPanel) panel).getQueryString(); 245 245 tabbedPane.addTab(Messages.getMessage("mainFrame_search") + queryString, scrollPaneImagesPanel, 246 new ImageIcon( Outil.getURL("fr/mael/jiwigo/img/closetab.png")));246 new ImageIcon(Tools.getURL("fr/mael/jiwigo/img/closetab.png"))); 247 247 } 248 248
Note: See TracChangeset
for help on using the changeset viewer.