Skip to content

Commit

Permalink
Minor documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
synapticloop committed Sep 19, 2024
1 parent 23f5815 commit beefbc9
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
Binary file modified src/dist/book/Getting Started With Synapticloop Panl.pdf
Binary file not shown.
37 changes: 34 additions & 3 deletions src/main/java/com/synapticloop/panl/editor/PanlEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package com.synapticloop.panl.editor;

import com.formdev.flatlaf.FlatLaf;
import com.formdev.flatlaf.FlatLightLaf;

import javax.swing.*;
Expand All @@ -40,14 +41,44 @@ public void show() {

//1. Create the frame.
JFrame frame = new JFrame("Panl Configuration Editor");
JLabel emptyLabel = new JLabel("");
emptyLabel.setPreferredSize(new Dimension(400, 600));
frame.setPreferredSize(new Dimension(400, 600));
frame.setMinimumSize(new Dimension(400, 600));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.getContentPane().add(emptyLabel, BorderLayout.CENTER);
// JButton button = new JButton("Select panl.properties file");
// button.setPreferredSize(new Dimension(200, 40));
//
// frame.setContentPane(button);
frame.getContentPane().add(generateSelectFile(), BorderLayout.CENTER);
JLabel jLabel = new JLabel("No panl.properties file found");
jLabel.setHorizontalAlignment(SwingConstants.CENTER);
jLabel.putClientProperty( "FlatLaf.styleClass", "h1" );

frame.getContentPane().add(jLabel, BorderLayout.NORTH);

frame.pack();

frame.setVisible(true);
}

private JPanel generateSelectFile() {
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridwidth = 3;
gbc.gridheight = 10;

gbc.gridx = 0;
gbc.gridy = 1;



JButton button = new JButton("Select panl.properties file");
button.setMaximumSize(new Dimension(200, 40));
button.setPreferredSize(new Dimension(200, 40));
button.setMinimumSize(new Dimension(200, 40));
gbc.gridx = 1;
gbc.gridy = 5;
panel.add(button, gbc);
return(panel);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public SortingProcessor(CollectionProperties collectionProperties) {
/**
* <p>There are two Sorting URIs - An additive URI, and a replacement URI,
* unlike other LPSE codes - these are a finite, set number of sort fields
* which are defined by the panl.sort.fields property.</p>
* which are defined by the <code>panl.sort.fields</code> property.</p>
*
* @param panlTokenMap the map of LPSE codes to list of panl tokens
*
Expand Down

0 comments on commit beefbc9

Please sign in to comment.