JFilePicker.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:Mujeed-Arabic-Prolog 作者:
public JFilePicker(String textFieldLabel, String buttonLabel) {

    setLayout(new FlowLayout(FlowLayout.CENTER, 5, 1));

    // creates the GUI
    label = new JLabel(textFieldLabel);
    label.setFont(new Font("Arial", Font.BOLD, 16));

    textField = new JTextField(30);
    textField.setFont(new Font("Arial", Font.PLAIN, 12));
    textField.setText(WorkspaceFile.getPathWorkspace());
    button = new JButton(buttonLabel);
    button.setFont(new Font("Arial", Font.BOLD, 14));

    label.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
    textField.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
    button.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

    add(button);
    add(textField);
    add(label);

    button.addActionListener(this);     
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号