1 package addBk.address; 2 3 import gui.run.RunButton; 4 5 import javax.swing.*; 6 import java.awt.*; 7 8 public class NavigationPanel 9 extends JPanel { 10 NavigationPanel() { 11 setLayout( 12 new GridLayout(0, 1)); 13 add(new RunButton("[prev"){ 14 public void run() { 15 16 } 17 }); 18 add(new RunButton("[next"){ 19 public void run() { 20 21 } 22 }); 23 add(new RunButton("[index"){ 24 public void run() { 25 26 } 27 }); 28 } 29 }