Results 1 to 6 of 6
  1. #1
    bns237 is offline Member
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0

    Default Java Gui Application

    How to resize Components (JButton , JTextField ...) with MouseListener or etc ?

  2. #2
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    986
    Rep Power
    2

    Default Re: Java Gui Application

    Use a LayoutManager.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  3. #3
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,089
    Rep Power
    6

    Default Re: Java Gui Application

    I think the guy is asking how to resize components by dragging the edges, otherwise I don't understand the reference to a "mouse listener".
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    bns237 is offline Member
    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0

    Default Re: Java Gui Application

    Yes with dragging

  5. #5
    gimbal2 is online now Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,089
    Rep Power
    6

    Default Re: Java Gui Application

    I can honestly say that I don't even have a single clue how to fully develop that myself; it is a wickedly difficult requirement to have. I can only imagine that you want to create some sort of graphical user interface editor?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    986
    Rep Power
    2

    Default Re: Java Gui Application

    It's probably old, but it looks like a good place to start: http://zetcode.com/tutorials/javaswi...ablecomponent/
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Replies: 2
    Last Post: 08-26-2012, 01:49 AM
  2. Replies: 2
    Last Post: 06-05-2012, 02:34 PM
  3. Replies: 0
    Last Post: 03-24-2012, 04:22 AM
  4. Replies: 0
    Last Post: 11-25-2011, 06:16 AM
  5. Replies: 3
    Last Post: 12-04-2009, 12:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •