Skip to content

Commit fc361dc

Browse files
[Fix] Remove cancel,Resize path
1 parent 3df830d commit fc361dc

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

mode/src/processing/mode/android/SDKDownloader.java

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ private void createInitLayout(SDKUrlHolder downloadUrls) {
724724
downloadPathPanel.add(pathLabel,BorderLayout.NORTH);
725725

726726
final JLabel locationLabel = new JLabel(processing.app.Base.getSketchbookFolder().getAbsolutePath());
727-
locationLabel.setMaximumSize(Toolkit.zoom(100,locationLabel.getHeight()));
728-
locationLabel.setPreferredSize(Toolkit.zoom(100,locationLabel.getHeight()));
727+
locationLabel.setMaximumSize(Toolkit.zoom(200,locationLabel.getHeight()));
728+
locationLabel.setPreferredSize(Toolkit.zoom(200,locationLabel.getHeight()));
729729
locationLabel.setToolTipText(locationLabel.getText());
730730
downloadPathPanel.add(locationLabel,BorderLayout.WEST);
731731

@@ -766,18 +766,7 @@ public void actionPerformed(ActionEvent e) {
766766
JPanel buttons = new JPanel();
767767
buttons.setAlignmentX(LEFT_ALIGNMENT);
768768

769-
JButton backButton = new JButton("Back");
770-
backButton.setPreferredSize(dim);
771-
backButton.addActionListener(new ActionListener() {
772-
@Override
773-
public void actionPerformed(ActionEvent e) {
774-
dispose();
775-
goBack = true;
776-
}
777-
});
778-
buttons.add(backButton);
779-
780-
JButton continueButton = new JButton("Continue");
769+
JButton continueButton = new JButton("Install");
781770
continueButton.setPreferredSize(dim);
782771
continueButton.addActionListener(new ActionListener() {
783772
@Override
@@ -789,16 +778,17 @@ public void actionPerformed(ActionEvent e) {
789778
});
790779
buttons.add(continueButton);
791780

792-
JButton cancelButton = new JButton("Cancel");
793-
cancelButton.setPreferredSize(dim);
794-
buttons.add(cancelButton);
795-
cancelButton.addActionListener(new ActionListener() {
781+
JButton backButton = new JButton("Back");
782+
backButton.setPreferredSize(dim);
783+
backButton.addActionListener(new ActionListener() {
796784
@Override
797785
public void actionPerformed(ActionEvent e) {
798786
dispose();
799-
cancelled = true;
787+
goBack = true;
800788
}
801789
});
790+
buttons.add(backButton);
791+
802792
mainPanel.add(buttons);
803793

804794
//The side panel with image Icon-------------------------------------------

0 commit comments

Comments
 (0)