tuned;
authorwenzelm
Sat, 02 Nov 2024 16:08:26 +0100
changeset 81316 6a4d71836549
parent 81315 b796e59ec3ef
child 81317 177e6bb67e90
tuned;
src/Tools/jEdit/src/tree_text_area.scala
--- a/src/Tools/jEdit/src/tree_text_area.scala	Sat Nov 02 16:03:26 2024 +0100
+++ b/src/Tools/jEdit/src/tree_text_area.scala	Sat Nov 02 16:08:26 2024 +0100
@@ -87,13 +87,13 @@
 
   def handle_focus(): Unit = ()
 
-  def init_gui(component: JComponent): Unit = {
-    component.addComponentListener(
+  def init_gui(parent: JComponent): Unit = {
+    parent.addComponentListener(
       new ComponentAdapter {
         override def componentResized(e: ComponentEvent): Unit = delay_resize.invoke()
         override def componentShown(e: ComponentEvent): Unit = delay_resize.invoke()
       })
-    component.addFocusListener(
+    parent.addFocusListener(
       new FocusAdapter {
         override def focusGained(e: FocusEvent): Unit = handle_focus()
       })
@@ -106,7 +106,7 @@
         }
       })
 
-    component match {
+    parent match {
       case dockable: Dockable => dockable.set_content(main_pane)
       case _ =>
     }