1 19 20 package org.lucane.applications.notes.gui.note; 21 22 import java.awt.*; 23 import javax.swing.*; 24 25 import org.lucane.applications.notes.NotesPlugin; 26 27 class DatesPanel extends JPanel 28 { 29 private JLabel creation; 30 private JLabel edition; 31 32 public DatesPanel(NotesPlugin plugin) 33 { 34 super(); 36 this.setLayout(new GridLayout(2, 2)); 37 38 this.creation = new JLabel(""); 39 this.edition = new JLabel(""); 40 41 this.add(new JLabel(plugin.tr("note.creation.date"))); 42 this.add(creation); 43 this.add(new JLabel(plugin.tr("note.edition.date"))); 44 this.add(edition); 45 } 46 47 public void setCreationDate(String txt) 48 { 49 creation.setText(txt); 50 } 51 52 public void setEditionDate(String txt) 53 { 54 edition.setText(txt); 55 } 56 } | Popular Tags |