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 Original line Diff line number Diff line
@@ -108,10 +108,13 @@ public class JTextAreaAppender extends AppenderSkeleton {
				jTextArea.append(throwableRow + NEW_LINE);
				jTextArea.append(throwableRow + NEW_LINE);
			}
			}
		}
		}
		
		jTextArea.update(jTextArea.getGraphics());

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


	}
	}


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


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

		frame.add(scroll);
		frame.add(scroll);


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