Java/Swing programming question

Miscellaneous Forums/General Discussion/Java/Swing programming question

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

That Bagels,to be honest, I'm not sure about, my JButton experience only extends to text buttons, something like:-


import javax.swing.*;
import java.awt*;

public class MyButton extends JFrame {
 public MyButton(){
  super("Button");
  setsize(..)
  setdefaultcloseoperation(..)
  setVisible(..)
  anythingelse()
 
  flowlayout = flow = new flowlayout();
  setlayout(...)  
  JButton clickhere = new JButton("Click Here")
  add(clickhere)
  setvisible(...)
  }

 public static void main(...blah) {
  MyButton mbutton = new MyButton
}


Visit Suns forums, for a more in depth answer... That's the first place I used to go when I played with Java! :)

Dabz