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 TitlePanel extends JPanel 28 { 29 private JLabel label; 30 private JTextField title; 31 32 public TitlePanel(NotesPlugin plugin) 33 { 34 super(); 36 this.setLayout(new BorderLayout()); 37 38 this.label = new JLabel(plugin.tr("note.title")); 39 this.title = new JTextField(); 40 this.add(label, BorderLayout.WEST); 41 this.add(title, BorderLayout.CENTER); 42 } 43 44 public void setTitle(String txt) 45 { 46 title.setText(txt); 47 } 48 49 public String getTitle() 50 { 51 return title.getText(); 52 } 53 } | Popular Tags |