Commit 2451fa3b authored by Omar ALQAWASMEH's avatar Omar ALQAWASMEH
Browse files

scroll pane issue not solved yet

parent 0b1f2dd7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -108,10 +108,13 @@ public class JTextAreaAppender extends AppenderSkeleton {
				jTextArea.append(throwableRow + NEW_LINE);
			}
		}
		
		jTextArea.update(jTextArea.getGraphics());

		// scroll TextArea
//		jTextArea.setCaretPosition(jTextArea.getText().length());
		jTextArea.update(jTextArea.getGraphics());
//		jTextArea.setCaretPosition(jTextArea.getDocument().getLength() - 1);
//		jTextArea.update(jTextArea.getGraphics());
//		texta.setCaretPosition(texta.getDocument().getLength() - 1);

	}

+0 −2
Original line number Diff line number Diff line
@@ -487,7 +487,6 @@ public class Main {

		scroll = new JScrollPane(txtConsole, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
				JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

		frame.add(scroll);

		frame.pack();
@@ -681,7 +680,6 @@ public class Main {
			LOG.error("Exception:", ex);
			ex.printStackTrace();
		}
		LOG.info(lastPath+ "\t\t omar");
		if (!isTheConsoleActive) {
			
			System.exit(code);