Skip to content

Commit 8effa32

Browse files
committed
adds maximumRowCount to ComboBox
1 parent 7d7fba8 commit 8effa32

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/scala/scala/swing/ComboBox.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,17 @@ class ComboBox[A](items: Seq[A]) extends Component with Publisher {
191191
*/
192192
def editable: Boolean = peer.isEditable
193193

194+
195+
/**
196+
* Maximum number of rows to display without scrolling
197+
*/
198+
def maximumRowCount: Int = peer.getMaximumRowCount
199+
200+
/**
201+
* Maximum number of rows to display without scrolling
202+
*/
203+
def maximumRowCount_=(c:Int): Unit = peer.setMaximumRowCount(c)
204+
194205
/**
195206
* Makes this combo box editable. In order to do so, this combo needs an
196207
* editor which is supplied by the implicit argument. For default

0 commit comments

Comments
 (0)