mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-09 19:55:13 +00:00
remember look and feel background color
This commit is contained in:
parent
066085a174
commit
730917f846
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: CodeUI.java,v 1.4 2008/04/23 13:47:18 fros4943 Exp $
|
* $Id: CodeUI.java,v 1.5 2008/11/03 18:10:52 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote.plugins;
|
package se.sics.cooja.mspmote.plugins;
|
||||||
@ -71,6 +71,7 @@ public class CodeUI extends JPanel {
|
|||||||
this.breakpoints = breakpoints;
|
this.breakpoints = breakpoints;
|
||||||
|
|
||||||
setLayout(new BorderLayout());
|
setLayout(new BorderLayout());
|
||||||
|
|
||||||
panel = new JPanel(new BorderLayout());
|
panel = new JPanel(new BorderLayout());
|
||||||
add(panel, BorderLayout.CENTER);
|
add(panel, BorderLayout.CENTER);
|
||||||
displayNoCode();
|
displayNoCode();
|
||||||
@ -188,6 +189,7 @@ public class CodeUI extends JPanel {
|
|||||||
public void run() {
|
public void run() {
|
||||||
// Display code
|
// Display code
|
||||||
codeList = new JList(new CodeListModel(codeData));
|
codeList = new JList(new CodeListModel(codeData));
|
||||||
|
codeList.setBackground(Color.WHITE);
|
||||||
codeList.setFont(new Font("courier", 0, 12));
|
codeList.setFont(new Font("courier", 0, 12));
|
||||||
codeList.setCellRenderer(new CodeCellRenderer(lineNr));
|
codeList.setCellRenderer(new CodeCellRenderer(lineNr));
|
||||||
codeList.addMouseListener(new MouseListener() {
|
codeList.addMouseListener(new MouseListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user