1 package be
.nikiroo
.fanfix
.reader
.ui
;
3 import java
.awt
.BorderLayout
;
5 import javax
.swing
.JFrame
;
7 import be
.nikiroo
.fanfix
.data
.MetaData
;
8 import be
.nikiroo
.fanfix
.data
.Story
;
9 import be
.nikiroo
.fanfix
.library
.BasicLibrary
;
12 * A frame displaying properties and other information of a {@link Story}.
16 public class GuiReaderPropertiesFrame
extends JFrame
{
17 private static final long serialVersionUID
= 1L;
20 * Create a new {@link GuiReaderPropertiesFrame}.
23 * the library to use for the cover image
25 * the meta to describe
27 public GuiReaderPropertiesFrame(BasicLibrary lib
, MetaData meta
) {
28 setTitle(meta
.getLuid() + ": " + meta
.getTitle());
30 GuiReaderPropertiesPane desc
= new GuiReaderPropertiesPane(lib
, meta
);
32 (int) desc
.getPreferredSize().getHeight() + 2
33 * desc
.getBorderThickness());
35 setLayout(new BorderLayout());
36 add(desc
, BorderLayout
.NORTH
);