to persist the data of a dialog box in java

后端 未结 3 1031
天涯浪人
天涯浪人 2021-01-20 19:37
if(e.getActionCommand().equals(\"save to file\"))
    {
        System.out.println(\"save is pressed\");
        StringBuffer fileContent = new StringBuffer();
              


        
3条回答
  •  旧时难觅i
    2021-01-20 19:47

    Consider saving just the TableModel data using java.util.Preferences, exemplified here, or javax.jnlp.PersistenceService, cited here.

提交回复
热议问题