Skip to content

Commit

Permalink
Change tooltip location of filtercombobox, fix invalid border
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcsgit committed Aug 27, 2023
1 parent 1d5b76a commit 962aeee
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/com/blogspot/kotlinstudy/lognote/FilterComboBox.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.blogspot.kotlinstudy.lognote

import java.awt.Color
import java.awt.Component
import java.awt.Dimension
import java.awt.Graphics
import java.awt.*
import java.awt.event.*
import javax.swing.*
import javax.swing.event.DocumentEvent
Expand Down Expand Up @@ -616,6 +613,10 @@ class FilterComboBox(mode: Mode, useColorTag: Boolean) : JComboBox<String>() {
fun setEnableHighlighter(enable: Boolean) {
mEnableHighlighter = enable
}

override fun getToolTipLocation(event: MouseEvent?): Point {
return Point(0, height)
}
}
}

Expand Down Expand Up @@ -808,14 +809,17 @@ class FilterComboBox(mode: Mode, useColorTag: Boolean) : JComboBox<String>() {
}
}
}

override fun getToolTipLocation(event: MouseEvent?): Point {
return Point(0, height)
}
}
}

internal inner class ColorTagDialog (mainUI: MainUI) : JDialog(mainUI, "", false) {
private val mColorManager = ColorManager.getInstance()
init {
isUndecorated = true
border = BorderFactory.createEmptyBorder()
this.isUndecorated = true
val tf = JTextField()
tf.border = BorderFactory.createEmptyBorder()
updateHighlighter(tf)
Expand Down

0 comments on commit 962aeee

Please sign in to comment.