You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
821 B
33 lines
821 B
4 years ago
|
package com.fr.password.tool.ui;
|
||
|
|
||
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class TipPanel extends JPanel {
|
||
|
public final static TipPanel INSTANCE = new TipPanel();
|
||
|
|
||
|
private JLabel leftLabel = new JLabel();
|
||
|
private JLabel rightLabel = new JLabel();
|
||
|
|
||
|
|
||
|
private TipPanel() {
|
||
|
FlowLayout flowLayout = new FlowLayout();
|
||
|
flowLayout.setHgap(FrameConstants.FLOW_WIDTH);
|
||
|
setLayout(flowLayout);
|
||
|
add(FilePanel.INSTANCE);
|
||
|
|
||
|
this.leftLabel.setText(FrameConstants.PUBLIC_KEY);
|
||
|
this.rightLabel.setText(FrameConstants.PRIVATE_KEY);
|
||
|
add(leftLabel);
|
||
|
add(rightLabel);
|
||
|
}
|
||
|
|
||
|
public void setLeftLabel(String text) {
|
||
|
this.leftLabel.setText(text);
|
||
|
}
|
||
|
|
||
|
public void setRightLabel(String text) {
|
||
|
this.rightLabel.setText(text);
|
||
|
}
|
||
|
}
|