1 package be
.nikiroo
.fanfix
.reader
.ui
;
3 import java
.awt
.BorderLayout
;
5 import javax
.swing
.JFrame
;
7 import be
.nikiroo
.fanfix
.bundles
.StringIdGui
;
8 import be
.nikiroo
.fanfix
.data
.MetaData
;
9 import be
.nikiroo
.fanfix
.data
.Story
;
10 import be
.nikiroo
.fanfix
.library
.BasicLibrary
;
13 * A frame displaying properties and other information of a {@link Story}.
17 public class GuiReaderPropertiesFrame
extends JFrame
{
18 private static final long serialVersionUID
= 1L;
21 * Create a new {@link GuiReaderPropertiesFrame}.
24 * the library to use for the cover image
26 * the meta to describe
28 public GuiReaderPropertiesFrame(BasicLibrary lib
, MetaData meta
) {
29 setTitle(GuiReader
.trans(StringIdGui
.TITLE_STORY
, meta
.getLuid(),
32 GuiReaderPropertiesPane desc
= new GuiReaderPropertiesPane(lib
, meta
);
34 (int) desc
.getPreferredSize().getHeight() + 2
35 * desc
.getBorderThickness());
37 setLayout(new BorderLayout());
38 add(desc
, BorderLayout
.NORTH
);