2 changed files with 36 additions and 0 deletions
Binary file not shown.
@ -0,0 +1,36 @@ |
|||||||
|
package com.fr.design.mainframe.toolbar; |
||||||
|
|
||||||
|
import com.fr.base.BaseUtils; |
||||||
|
import com.fr.design.file.NewTemplatePane; |
||||||
|
|
||||||
|
import javax.swing.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* Created by hzzz on 2017/12/26. |
||||||
|
*/ |
||||||
|
public class ToolBarNewTemplatePane extends NewTemplatePane { |
||||||
|
|
||||||
|
private static final ToolBarNewTemplatePane instance = new ToolBarNewTemplatePane(); |
||||||
|
|
||||||
|
private ToolBarNewTemplatePane() { |
||||||
|
} |
||||||
|
|
||||||
|
public static NewTemplatePane getInstance() { |
||||||
|
return instance; |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Icon getNew() { |
||||||
|
return BaseUtils.readIcon("/com/fr/design/images/buttonicon/addicon.png"); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Icon getMouseOverNew() { |
||||||
|
return BaseUtils.readIcon("/com/fr/design/images/buttonicon/add_press.png"); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public Icon getMousePressNew() { |
||||||
|
return BaseUtils.readIcon("/com/fr/design/images/buttonicon/add_press.png"); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue