From: Niki Roo Date: Mon, 15 Apr 2019 21:16:40 +0000 (+0200) Subject: GUI: search action X-Git-Tag: fanfix-swing-0.0.1~12^2~141 X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=eb665fbd51f57c9ea0070bc345ba9827b250c8bb;p=fanfix-swing.git GUI: search action --- diff --git a/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java b/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java new file mode 100644 index 00000000..dbce52f1 --- /dev/null +++ b/src/be/nikiroo/fanfix/reader/ui/GuiReaderSearchAction.java @@ -0,0 +1,32 @@ +package be.nikiroo.fanfix.reader.ui; + +import java.awt.BorderLayout; + +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JPanel; + +import be.nikiroo.fanfix.library.BasicLibrary; + +public class GuiReaderSearchAction extends JFrame { + private static final long serialVersionUID = 1L; + + private GuiReaderBookInfo info; + + public GuiReaderSearchAction(BasicLibrary lib, GuiReaderBookInfo info) { + // TODO i18n + super("TODO: " + info.getMainInfo()); + this.setSize(800, 600); + this.info = info; + + setLayout(new BorderLayout()); + + JPanel props = new GuiReaderPropertiesPane(lib, info.getMeta()); + + add(props, BorderLayout.NORTH); + add(new GuiReaderViewerPanel(info.getMeta(), info.getMeta() + .isImageDocument()), BorderLayout.CENTER); + add(new JButton("TODO: Download"), BorderLayout.SOUTH); + // TODO --^ + } +}