Skip to content

Commit

Permalink
Modify import file chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
0xceba committed Dec 29, 2024
1 parent 0795bac commit f097f17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/_0xceba/BurpVariablesTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,14 @@ private void setDefaultToolToggleSelections(){
private void importCSV(){
// Create a file chooser
JFileChooser fileChooser = new JFileChooser();
fileChooser.setDialogTitle("Import CSV file");
fileChooser.setDialogTitle("Import variables from a CSV file");

// Set a file filter to show only .csv files
FileNameExtensionFilter filter = new FileNameExtensionFilter("CSV files", "csv");
fileChooser.setFileFilter(filter);

// Open a save dialog window and wait for the user to select a file or cancel
int userSelection = fileChooser.showSaveDialog(null);
// Open an open dialog window and wait for the user to select a file or cancel
int userSelection = fileChooser.showOpenDialog(null);

// If the user selected a file to save
if (userSelection == JFileChooser.APPROVE_OPTION) {
Expand Down

0 comments on commit f097f17

Please sign in to comment.