From 8fdff03e92d290c660141622ef8c39d34fce98e9 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 27 Jan 2008 10:39:49 +0000 Subject: [PATCH] Minor changes without effects git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@615570 13f79535-47bb-0310-9956-ffa450edef68 --- pos/src/org/ofbiz/pos/component/Journal.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pos/src/org/ofbiz/pos/component/Journal.java b/pos/src/org/ofbiz/pos/component/Journal.java index 2a61bb857..83238e47e 100644 --- a/pos/src/org/ofbiz/pos/component/Journal.java +++ b/pos/src/org/ofbiz/pos/component/Journal.java @@ -52,17 +52,16 @@ public class Journal { public Journal(PosScreen page) { this.jpanel = (XScrollPane) page.findComponent("journal_panel"); this.jpanel.setVisible(false); - this.jpanel.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); - this.jpanel.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); this.jtable = (XTable) page.findComponent("jtable"); // set the table as selectable jtable.setInteractiveTable(true); jtable.setFocusable(false); - jtable.setDragEnabled(false); - jtable.setColumnSelectionAllowed(false); + jtable.setDragEnabled(false); + jtable.setColumnSelectionAllowed(false); jtable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); + // set the styles jtable.setBorderStyle("journalBorder"); @@ -115,9 +114,6 @@ public class Journal { jtable.setVisible(!lock); jtable.setEnabled(!lock); this.jpanel.setVisible(!lock); - if (!lock) { - this.jpanel.setVisible(true); - } } public synchronized void refresh(PosScreen pos) {