|
|
@ -5,6 +5,7 @@ import com.fr.design.gui.frpane.FontSizeComboPane; |
|
|
|
import com.fr.widgettheme.theme.widget.style.ThemeTextStyle; |
|
|
|
import com.fr.widgettheme.theme.widget.style.ThemeTextStyle; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
|
|
|
import javax.swing.Box; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
@ -30,12 +31,13 @@ public class WidgetTextStylePane extends JPanel { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public WidgetTextStylePane(Vector<Integer> fontSizes, int preferredWidth) { |
|
|
|
public WidgetTextStylePane(Vector<Integer> fontSizes, int preferredWidth) { |
|
|
|
this.setLayout(new FlowLayout(FlowLayout.LEFT)); |
|
|
|
this.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder()); |
|
|
|
fontSizePane = new FontSizeComboPane(fontSizes); |
|
|
|
fontSizePane = new FontSizeComboPane(fontSizes); |
|
|
|
fontColorButton = new UIColorButton(); |
|
|
|
fontColorButton = new UIColorButton(); |
|
|
|
fontSizePane.setPreferredSize(new Dimension(preferredWidth, fontSizePane.getPreferredSize().height)); |
|
|
|
fontSizePane.setPreferredSize(new Dimension(preferredWidth, fontSizePane.getPreferredSize().height)); |
|
|
|
this.add(fontSizePane); |
|
|
|
this.add(fontSizePane); |
|
|
|
|
|
|
|
add(Box.createHorizontalStrut(5)); |
|
|
|
this.add(fontColorButton); |
|
|
|
this.add(fontColorButton); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|