Questions tagged [seesaw]

Seesaw UI for Clojure

Seesaw is a Swing-based library/DSL for constructing user interfaces in the Clojure programming language.

63 questions
3
votes
1 answer

Could not locate seesaw/core.clj on classpath?

I'm trying to make a small window using seesaw for Clojure. However, when I attempt to create the JAR file using: lein uberjar I get the following error on the command line for Windows: Caused by: clojure.lang.Compiler$CompilerException:…
JRI-src
  • 43
  • 3
3
votes
3 answers

Clojure's Seesaw: How do I recognize that enter has been pressed

http://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html#getKeyCode() I don't know how to test if the key that was pressed was Enter. Using the following boiler plate and (alert ...). I've managed to determined that the event, e, is a…
PuercoPop
  • 6,707
  • 4
  • 30
  • 40
3
votes
0 answers

Clojure/Seesaw HeadlessException

I am getting a HeadlessException when I try to create a frame in seesaw. Specifically I run (seesaw.core/frame :title "Hello" :on-close :exit) and get HeadlessException java.awt.GraphicsEnvironment.checkHeadless (GraphicsEnvironment.java:207) My…
3
votes
2 answers

Different colors/fonts in one text area

Can I have different foreground colors in one text area? Different fonts? I want to add something like "hh:mm:ss Nickname: message", with time being gray, name - blue, message - black.
desudesudesu
  • 2,185
  • 1
  • 15
  • 20
3
votes
1 answer

Seesaw button bind WindowBuilder

Currently I'm using an application with a form designed in WindowBuilder. The form contains a button which I want to use in Clojure/seesaw. So my question is: how am I able to use the button defined in Java in Clojure? Kind regards, Mittchel
Mittchel
  • 1,896
  • 3
  • 19
  • 37
2
votes
0 answers

Seesaw: Multiline text field not shrinking with frame

I mount the following seesaw code (:require [seesaw.core :as ss]) into any frame: (ss/scrollable (ss/grid-panel :items [(ss/scrollable (ss/text :rows 8 :multi-line? true :wrap-lines? false …
Phylax
  • 189
  • 10
2
votes
0 answers

Using config! in a handler doesn't work

I'm writing a GUI, and need to be able to replace a border-pane's :center section with another pane. The problem is, the call to config! in the handler doesn't have the effect of changing the pane. All other nearly identical calls elsewhere…
Carcigenicate
  • 43,494
  • 9
  • 68
  • 117
2
votes
0 answers

How do I sub-class a SeeSaw panel in Clojure?

I want to make a custom panel (12 checkboxes in a row) with functions to get/set. I'm pretty new to proxy and the seesaw grid-panel already is a proxy so how do I add (sub-class) my own constructor and other functions? To be more specific, I want to…
Kingfranz
  • 184
  • 1
  • 12
2
votes
1 answer

How to accelerate a lagging Swing minesweeper board?

I recently created a little minesweeper UI using the seesaw framework which is basically a nifty clojure wrapper around swing. The related code can be found here. Basically everything works fine so far, the only problem is that the user experience…
u6f6o
  • 2,050
  • 3
  • 29
  • 54
2
votes
1 answer

All options for combobox in clojure/seesaw

So I've created some comboboxes with a variety of elements in alphabetical order. I do not want the default selection on my menu to be the top value; rather, I want it to be the most commonly selected value. In swing I could call the member function…
Lucas Rudd
  • 385
  • 1
  • 13
2
votes
1 answer

Clojure seesaw application: How to change menubar title from "main"

In my standalone app written in clojure using seesaw to create the gui, and running under OSX, I get a menubar title "main". This appears to be the default for seesaw based programs. I see it in any of the tutorial examples available. Here is what…
Iain
  • 300
  • 2
  • 13
2
votes
1 answer

How to create a MigLayout for a simple minesweeper game?

I am working on a simple clojure minesweeper game, mainly to exercise the language a bit. The "core game engine" is ready and now I'd like to add a simple UI. I had a look into seesaw and so far it worked quite nicely. The only thing I am struggling…
u6f6o
  • 2,050
  • 3
  • 29
  • 54
2
votes
1 answer

Seesaw key events not firing

I'm trying to listen to the :key-pressed and :key-released events on my Seesaw frame, but the events aren't firing. I've narrowed the problem down to a listbox -- when the listbox is present, the frame no longer captures the key events. Here's a…
Austin Pocus
  • 993
  • 11
  • 18
2
votes
2 answers

How to replace a SeeSaw widget with a dynamically created one in Clojure?

I'm new to Clojure, Java and functional programming. I started working with SeeSaw for GUI and loving it. Using an example from Dave Ray i create a widget: (defrecord Col-definition [id col-name col-position]) with associated functions to create…
Dawie
  • 41
  • 4
2
votes
1 answer

Values of Listbox with Seesaw

is there any way i can get the values of a Listbox in seesaw as a collection, that Clojure can handle? The most i've got was a JList, which Clojure can't handle. /edit: To Clarify: For Example i want to get all of the Elements of a Listbox and conj…
WeGi
  • 1,908
  • 1
  • 21
  • 33