Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakimotor committed Jun 1, 2020
1 parent ad18b90 commit 05a748b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Fenetre.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,12 @@ public class Fenetre extends JFrame implements ActionListener, TableModelListene
int langue;
int type;
int version;
Font police;
public Fenetre() {
this.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.fenetre.setTitle("The Silver Parser");
this.fenetre.setMinimumSize(new Dimension(640, 480));
this.model = new DefaultTableModel();
this.table = new JTable(model);
try {
this.police = Font.createFont(Font.TRUETYPE_FONT, new File("Modaerne.ttf")).deriveFont(70.0f);
GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
ge.registerFont(this.police);
} catch (IOException|FontFormatException e) {
//Handle exception
}
this.table.setFont(this.police);
this.table.setSelectionBackground(new Color(190, 190, 190));
this.table.putClientProperty("terminateEditOnFocusLost", true);
model.addColumn("N°");
Expand Down
Binary file removed notosans.ttf
Binary file not shown.

0 comments on commit 05a748b

Please sign in to comment.