mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -06:00
FormattedTextField implemented
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2019 FormDev Software GmbH
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.formdev.flatlaf.ui;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.plaf.ComponentUI;
|
||||
|
||||
/**
|
||||
* Provides the Flat LaF UI delegate for {@link javax.swing.JFormattedTextField}.
|
||||
*
|
||||
* @author Karl Tauber
|
||||
*/
|
||||
public class FlatFormattedTextFieldUI
|
||||
extends FlatTextFieldUI
|
||||
{
|
||||
public static ComponentUI createUI( JComponent c ) {
|
||||
return new FlatFormattedTextFieldUI();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getPropertyPrefix() {
|
||||
return "FormattedTextField";
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@
|
||||
@background=3c3f41
|
||||
@foreground=bbbbbb
|
||||
@disabledText=777777
|
||||
@textComponentBackground=45494A
|
||||
|
||||
|
||||
#---- globals ----
|
||||
@@ -88,8 +89,3 @@ Component.focusColor=3d6185
|
||||
#---- Label ----
|
||||
|
||||
Label.disabledForeground=@disabledText
|
||||
|
||||
|
||||
#---- TextField ----
|
||||
|
||||
TextField.background=45494A
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
ButtonUI=com.formdev.flatlaf.ui.FlatButtonUI
|
||||
CheckBoxUI=com.formdev.flatlaf.ui.FlatCheckBoxUI
|
||||
FormattedTextFieldUI=com.formdev.flatlaf.ui.FlatFormattedTextFieldUI
|
||||
LabelUI=com.formdev.flatlaf.ui.FlatLabelUI
|
||||
RadioButtonUI=com.formdev.flatlaf.ui.FlatRadioButtonUI
|
||||
TextFieldUI=com.formdev.flatlaf.ui.FlatTextFieldUI
|
||||
@@ -41,6 +42,13 @@ Component.focusWidth=2
|
||||
Component.arc=5
|
||||
|
||||
|
||||
#---- FormattedTextField ----
|
||||
|
||||
FormattedTextField.border=com.formdev.flatlaf.ui.FlatBorder
|
||||
FormattedTextField.background=@textComponentBackground
|
||||
FormattedTextField.margin=2,6,2,6
|
||||
|
||||
|
||||
#---- RadioButton ----
|
||||
|
||||
RadioButton.border=com.formdev.flatlaf.ui.FlatMarginBorder
|
||||
@@ -50,4 +58,5 @@ RadioButton.icon=com.formdev.flatlaf.ui.FlatRadioButtonIcon
|
||||
#---- TextField ----
|
||||
|
||||
TextField.border=com.formdev.flatlaf.ui.FlatBorder
|
||||
TextField.background=@textComponentBackground
|
||||
TextField.margin=2,6,2,6
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
@background=f2f2f2
|
||||
@foreground=000000
|
||||
@disabledText=999999
|
||||
@textComponentBackground=ffffff
|
||||
|
||||
|
||||
#---- globals ----
|
||||
@@ -88,8 +89,3 @@ Component.focusColor=97c3f3
|
||||
#---- Label ----
|
||||
|
||||
Label.disabledForeground=@disabledText
|
||||
|
||||
|
||||
#---- TextField ----
|
||||
|
||||
TextField.background=ffffff
|
||||
|
||||
Reference in New Issue
Block a user