1 33 34 package edu.rice.cs.util.swing; 35 36 import javax.swing.*; 37 import javax.swing.border.*; 38 import java.awt.*; 39 45 public class BorderlessScrollPane extends JScrollPane { 46 49 private static final Border DEFAULT = new EtchedBorder(); 50 51 54 public BorderlessScrollPane() { 55 super(); 56 setBorder(DEFAULT); 57 } 58 public BorderlessScrollPane(Component view) { 59 super(view); 60 setBorder(DEFAULT); 61 } 62 public BorderlessScrollPane(Component view, int vsbPolicy, int hsbPolicy) { 63 super(view,vsbPolicy,hsbPolicy); 64 setBorder(DEFAULT); 65 } 66 public BorderlessScrollPane(int vsbPolicy, int hsbPolicy) { 67 super(vsbPolicy,hsbPolicy); 68 setBorder(DEFAULT); 69 } 70 } 71 | Popular Tags |