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
13
votes
2 answers

How to install a dependency in a Clojure project

This is a noob question, so I'm sorry if I offend somebody. But how do I install seesaw on a *nix computer? Yes, I've read the README.MD file, but how does the project.clj know where to find the library jars (for seesaw for example)?
Zchpyvr
  • 1,119
  • 3
  • 12
  • 26
8
votes
1 answer

Enable full screen using seesaw?

How can I make my seesaw program full screen when F11 is pressed? (not just maximized) I currently have this: (defn toggle-full-screen [e] (-> (to-root e) magic!) (def full-screen-action (action :name "Full Screen" :tip "Full Screen" …
AnnanFay
  • 9,573
  • 15
  • 63
  • 86
6
votes
1 answer

Functional Event Driven Programming

I'm having trouble writing event driven GUI code in a functional style, using Clojure and Seesaw. Specifically, I can't figure out how to pass the state of the program around without using globals, or some other unpleasant hack. My current approach…
resueman
  • 10,572
  • 10
  • 31
  • 45
6
votes
2 answers

Clojure - Autoupdating Listbox

here's what i'd like to do: I've got a ref that represents a list of items. I'd like to have a listbox (seesaw?) that displays this lists contents, updating automatically (whenever i change the ref).
Gerrit Begher
  • 363
  • 2
  • 14
5
votes
3 answers

Should I use Java for a custom Swing component designed for a clojure app?

I want a simple timeline component (like in video editing software) for a clojure/seesaw app and I am wondering if it is a good approach to implement this directly with clojure and seesaw or if I should write it in java and make my clojure wrapper…
nansen
  • 2,912
  • 1
  • 20
  • 33
5
votes
1 answer

How to set an image for the panel background with seesaw?

I want to set a custom image for the panel background in my clojure app. Using seesaw I can set some color for the background: (defn make-panel [] (border-panel :north (flow-panel :align :center :items…
mimikrmvr
  • 63
  • 1
  • 6
5
votes
2 answers

How can I remove listeners from an object in Seesaw if I haven't kept the return function?

To add a listener to a UI element in Seesaw you do this: (listen ui-element :action (fn [_] (...))) listen attaches a listener that calls the provided function when :action is triggered on `ui-element1. It also returns a function. If you execute…
SCdF
  • 57,260
  • 24
  • 77
  • 113
5
votes
2 answers

Why table's column names are not displayed here?

I have a problem with seesaw table. When I try to make up and show a simple table, it shows without column names. What I did: At first, I must say that I am using [seesaw "1.4.2"]. Then: ;; Clojure 1.4.0 (require '[seesaw.core :as…
Display Name
  • 8,022
  • 3
  • 31
  • 66
5
votes
1 answer

How can I update a seesaw tree model?

I've been using seesaw.tree/simple-tree-model to create my TreeModels, the docs say that this is read only. Originally I didn't need to edit the tree structure however now I do! There is a pull request in seesaw for adding update-tree!. Though this…
AnnanFay
  • 9,573
  • 15
  • 63
  • 86
4
votes
0 answers

How do I quit application written in Clojure Seesaw?

I am aware of (frame :title "Example" :on-close :exit) but what I am supposed to do if I want to do some custom action after selecting Quit in the menu? (fn [e] (System/exit 0) ) didn't work. Edit 1 Oops, (fn [e] (System/exit 0) )…
ruby_object
  • 1,229
  • 1
  • 12
  • 30
4
votes
1 answer

Clojure swing app startup time

I just started making a GUI app using clojure and seesaw. It does little more that create a JFrame and a couple components. Here's the code. The main function does nothing but call start-gui and exit as soon as it returns. (ns pause.gui (:use…
adrusi
  • 835
  • 1
  • 7
  • 14
4
votes
4 answers

Wait for a keypress in clojure

I created a java frame with seesaw (def f (frame :title "my app")) and I would like to catch user keypress. I tried to gather code here and there and ended with this (ns myapp.core (:use seesaw.core) (:use seesaw.font) (:import…
sai
  • 75
  • 7
3
votes
2 answers

Is it possible to have a bulleted list with an event handler?

I'm using seesaw to program an interface in Swing. I want to display a bulleted list of items. When an item is clicked I want an event handler to be called. I have managed to get event handlers working for components/widgets, and I can display a…
AnnanFay
  • 9,573
  • 15
  • 63
  • 86
3
votes
0 answers

Seesaw-V2 Vs Apache HTTP Vs NGINX

What are the similarities and differences among Seesaw-V2 (Google Open Sourced) Apache HTTP NGINX in terms of Load Balancing only.
Ashok Goli
  • 5,043
  • 8
  • 38
  • 68
3
votes
1 answer

How do I set an image's resolution?

I am using Seesaw to interact with Swing. I have some icons defined thus: (def label :icon (clojure.java.io/resource "some_image.png")) I want to render "some_image.png" in a different resolution. If I simply set the bounds, I'll only…
Pointo Senshi
  • 541
  • 5
  • 17
1
2 3 4 5