Merge branch 'subtree'
[fanfix.git] / src / be / nikiroo / fanfix / reader / ui / GuiReaderPropertiesFrame.java
CommitLineData
14bb95fa
NR
1package be.nikiroo.fanfix.reader.ui;
2
3import java.awt.BorderLayout;
14bb95fa 4
14bb95fa 5import javax.swing.JFrame;
14bb95fa 6
5bc9573b 7import be.nikiroo.fanfix.bundles.StringIdGui;
14bb95fa 8import be.nikiroo.fanfix.data.MetaData;
31e28683 9import be.nikiroo.fanfix.data.Story;
5beb7cdc 10import be.nikiroo.fanfix.library.BasicLibrary;
14bb95fa 11
31e28683
NR
12/**
13 * A frame displaying properties and other information of a {@link Story}.
14 *
15 * @author niki
16 */
14bb95fa
NR
17public class GuiReaderPropertiesFrame extends JFrame {
18 private static final long serialVersionUID = 1L;
19
31e28683
NR
20 /**
21 * Create a new {@link GuiReaderPropertiesFrame}.
22 *
459b4c28 23 * @param lib
5beb7cdc 24 * the library to use for the cover image
31e28683
NR
25 * @param meta
26 * the meta to describe
27 */
5beb7cdc 28 public GuiReaderPropertiesFrame(BasicLibrary lib, MetaData meta) {
5bc9573b
NR
29 setTitle(GuiReader.trans(StringIdGui.TITLE_STORY, meta.getLuid(),
30 meta.getTitle()));
14bb95fa 31
5beb7cdc
NR
32 GuiReaderPropertiesPane desc = new GuiReaderPropertiesPane(lib, meta);
33 setSize(800,
34 (int) desc.getPreferredSize().getHeight() + 2
35 * desc.getBorderThickness());
14bb95fa 36
5beb7cdc
NR
37 setLayout(new BorderLayout());
38 add(desc, BorderLayout.NORTH);
14bb95fa
NR
39 }
40}