heise online · c't · iX · Technology Review · Telepolis · mobil · Security · Netze · heise open · heise resale · Autos · c't-TV · Jobs · Kiosk
Zum Inhalt
c't

c't Projekte - c't-Bot und c't-Sim - Mailinglisten

c't-Bot und c't-Sim


[Voriger (Datum)] [Nächster (Datum)] [Voriger (Thread)] [Nächster (Thread)]
[Nach Datum][Nach Thread]

[ct-bot] Sim - Controlframe mit Scrollbar - Patch

Absender: Fabian Recktenwald
Datum: Do, 27.04.2006 13:31:31


Habe mal auf einfachste Weise das Controlfenster mit Scrollbalken versehen. Kann man das so lassen oder muss man noch auf irgendwas besonderes aufpassen? (anbei der Patch)

	Fabian Recktenwald
Index: Changelog.txt
===================================================================
RCS file: /ctbot/ct-Sim/Changelog.txt,v
retrieving revision 1.10
diff -u -r1.10 Changelog.txt
--- Changelog.txt	10 Apr 2006 22:04:59 -0000	1.10
+++ Changelog.txt	27 Apr 2006 12:56:46 -0000
@@ -1,5 +1,7 @@
 CHANGELOG fuer c't-Sim
 ======================
+2006-04-27 Fabien Recktenwald (fabian.recktenwald@xxxxxxxxxxxxxxxxxxx) Dem Controlfenster wurde ein ScrollPane hinzugefügt.
+
 2006-04-10 Andreas Merkle (mail@xxxxxxxxxxxx) Der c't-Sim kann nun auch Log-Informationen darstellen
 
 2006-03-20 Markus Lang (lang@xxxxxxxxxx)
Index: ctSim/ctSim/View/CtSimFrame.java
===================================================================
RCS file: /ctbot/ct-Sim/ctSim/ctSim/View/CtSimFrame.java,v
retrieving revision 1.1
diff -u -r1.1 CtSimFrame.java
--- ctSim/ctSim/View/CtSimFrame.java	20 Mar 2006 19:01:13 -0000	1.1
+++ ctSim/ctSim/View/CtSimFrame.java	27 Apr 2006 12:56:46 -0000
@@ -8,6 +8,7 @@
 
 import javax.swing.BoxLayout;
 import javax.swing.JFrame;
+import javax.swing.JScrollPane;
 import javax.swing.JSplitPane;
 
 /** 
@@ -68,8 +69,10 @@
 		Dimension preferedSize = this.controlFrame.getPreferredSize();
 		this.controlFrame.setMinimumSize(preferedSize);
 		this.controlFrame.setMaximumSize(preferedSize);
+		// scrollpane erstellen
+		JScrollPane controlScrollPane = new JScrollPane(this.controlFrame);
 		// splitpane erstellen
-		this.splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, this.controlFrame, worldView); 
+		this.splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, controlScrollPane, worldView); 
 		this.splitPane.setContinuousLayout(false); 
 		this.splitPane.setOneTouchExpandable(true);
 		


Copyright © 2007 Heise Zeitschriften Verlag Kritik, Anregungen bitte an c't-WWW Datenschutzhinweis   Impressum