fix: dialog title
This commit is contained in:
parent
02dba68454
commit
0adcabef93
|
@ -10,27 +10,27 @@ import se.lantz.gui.MainWindow;
|
||||||
|
|
||||||
public class EditCoverDialog extends BaseDialog
|
public class EditCoverDialog extends BaseDialog
|
||||||
{
|
{
|
||||||
private EditCoverPanel editScreenPanel;
|
private EditCoverPanel editCoverPanel;
|
||||||
|
|
||||||
public EditCoverDialog(BufferedImage originalScreen)
|
public EditCoverDialog(BufferedImage originalCover)
|
||||||
{
|
{
|
||||||
super(MainWindow.getInstance());
|
super(MainWindow.getInstance());
|
||||||
setTitle("Edit screenshot");
|
setTitle("Edit cover image");
|
||||||
JPanel content = new JPanel();
|
JPanel content = new JPanel();
|
||||||
content.setLayout(new BorderLayout());
|
content.setLayout(new BorderLayout());
|
||||||
content.add(getEditScreenshotPanel(), BorderLayout.CENTER);
|
content.add(getEditCoverPanel(), BorderLayout.CENTER);
|
||||||
addContent(content);
|
addContent(content);
|
||||||
getEditScreenshotPanel().setImage(originalScreen);
|
getEditCoverPanel().setImage(originalCover);
|
||||||
this.setResizable(false);
|
this.setResizable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private EditCoverPanel getEditScreenshotPanel()
|
private EditCoverPanel getEditCoverPanel()
|
||||||
{
|
{
|
||||||
if (editScreenPanel == null)
|
if (editCoverPanel == null)
|
||||||
{
|
{
|
||||||
editScreenPanel = new EditCoverPanel();
|
editCoverPanel = new EditCoverPanel();
|
||||||
}
|
}
|
||||||
return editScreenPanel;
|
return editCoverPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -41,6 +41,6 @@ public class EditCoverDialog extends BaseDialog
|
||||||
|
|
||||||
public BufferedImage getEditedImage()
|
public BufferedImage getEditedImage()
|
||||||
{
|
{
|
||||||
return getEditScreenshotPanel().getCroppedImage();
|
return getEditCoverPanel().getCroppedImage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue