dbce52f1b713fb995d29021f6209106ba85a7fb9
1 package be
.nikiroo
.fanfix
.reader
.ui
;
3 import java
.awt
.BorderLayout
;
5 import javax
.swing
.JButton
;
6 import javax
.swing
.JFrame
;
7 import javax
.swing
.JPanel
;
9 import be
.nikiroo
.fanfix
.library
.BasicLibrary
;
11 public class GuiReaderSearchAction
extends JFrame
{
12 private static final long serialVersionUID
= 1L;
14 private GuiReaderBookInfo info
;
16 public GuiReaderSearchAction(BasicLibrary lib
, GuiReaderBookInfo info
) {
18 super("TODO: " + info
.getMainInfo());
19 this.setSize(800, 600);
22 setLayout(new BorderLayout());
24 JPanel props
= new GuiReaderPropertiesPane(lib
, info
.getMeta());
26 add(props
, BorderLayout
.NORTH
);
27 add(new GuiReaderViewerPanel(info
.getMeta(), info
.getMeta()
28 .isImageDocument()), BorderLayout
.CENTER
);
29 add(new JButton("TODO: Download"), BorderLayout
.SOUTH
);