i am just starting to learn Java and i am starting by making my own private password storage app.
but i am having a little problem. i have wrote some simple code but i want to save input into a properties file. here is what i have.
Code:
import java.awt.BorderLayout;
import java.awt.Container;
import java.util.*;
import java.io.*;

import javax.swing.Box;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class PasswordField {
  public static void main(String args[]) {
    JFrame f = new JFrame("Accounts");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = f.getContentPane();
    content.setLayout(new BorderLayout());
    Box rowOne = Box.createHorizontalBox();
    rowOne.add(new JLabel("Username"));
    rowOne.add(new JTextField());
    Box rowTwo = Box.createHorizontalBox();
    rowTwo.add(new JLabel("Password"));
    rowTwo.add(new JPasswordField());
    content.add(rowOne, BorderLayout.NORTH);
    content.add(rowTwo, BorderLayout.SOUTH);
    f.setSize(300, 200);
    f.setVisible(true);
  }
}
i still need to add another text field and lastly encrypt the properties file but that will come later.