Sign up to connect with mKorbel and gain access to their complete profile
  • Member Avatar
    mKorbel

    Replied To a Post in How to add button in row in jTable

    1. about last column ( "Accept/Reject" ) - how can I reject ??? with simple JButton - JOptionPane should be always wrapped into invokeLater - moved to the end of …
  • Member Avatar
    mKorbel

    Replied To a Post in not able to bind the arraylist to jtable

    - for why reason(s) there is/are two arrays, models, ArrayList and DefaultTableModel - add records from database to DefaultTableModel directly, then to add model to JTable - search for TableFromDatabase, …
  • Member Avatar
    mKorbel

    Replied To a Post in WindowConstants' Constants, or JFrame's Constants?

    there is significant difference WindowListener is designated for add (code block e.g. closing resources before) control the closing JVM processes in comparing with the JFrame.setDefaultClose....
  • Member Avatar
    mKorbel

    Replied To a Post in fillPolygon code from Graphics

    my view - original Java by Sun was about enthusiasm, tons of API has lack in descriptions (authors of description were inspired by MSDN:-) - almost, maybe all methods used …
  • Member Avatar
    mKorbel

    Replied To a Post in fillPolygon code from Graphics

    @JamesCherrill wrote - Interesting question. A quick Google doesnt reveal any subclasses for Graphics2d - maybe they are private?, ---> not is available only for its parent - Graphics, @JamesCherrill …
  • Member Avatar
    mKorbel

    Replied To a Post in How to get date stored in database and display it in jdatepicker

    - assuming to store value as Date, TimeStampt in database - you have to use ResultSet.getDate() instead of little bit crazy parsing and then formatting String instance ... - every …
  • Member Avatar
    mKorbel

    Replied To a Post in Two mouse events for closing the jdialog

    crossposted on [CodeRanch](http://www.coderanch.com/t/651240/GUI/java/mouse-events-close-jdialog)
  • Member Avatar
    mKorbel

    Replied To a Post in Extract data from JOptionPane

    JOptionPane is designated to returns multiple value from multiple fields two ways as is, - primitive array - (intialized) variables _________________________________________________________________ in all cases is required to test for (easiest …
  • Member Avatar
    mKorbel

    Replied To a Post in how to get sum in a jtable column n display in a jtextfield?

    1. put number to JTable column, better to play with model only 2. override getColumnClass for correct datatype (String, Double, Date, Icon...) 3. loop in concrete column by call getValueAt, …
  • Member Avatar
    mKorbel

    Replied To a Post in Substance Look and Feel in java

    I need to know .... new version. ---> no one of Insubstantials members is not here active
  • Member Avatar
    mKorbel

    Replied To a Post in How to fill QuadCurve2D in Java Graphics2D

    secondary - put all graphics objects to the List - inside paintComponent loop inside array of Objects ______________________________________________________ important - don't to call anything from paintComponent - GeneralPath mouthAndTeeth = …
  • Member Avatar
    mKorbel

    Replied To a Post in Active Tile not moving even though I am changing it's position

    1. override getPrefferedSize instead of hunting for pixels perfections e.g. diff.getWidth()/getHeight(); 2. then inintial calculations about Width/Height is missunderstaning, thats should be part of paintComponent where getWidth()/getHeight() returns real pixels …
  • Member Avatar
    mKorbel

    Replied To a Post in Two Mouse Clicks at Same time

    - use methods from [SwingUtilities](http://docs.oracle.com/javase/7/docs/api/javax/swing/SwingUtilities.html#isLeftMouseButton%28java.awt.event.MouseEvent%29), because there is mouse with 5 buttons - [AWTEventListener](https://docs.oracle.com/javase/7/docs/api/java/awt/event/AWTEventListener.html) can returns [MouseEvents](https://docs.oracle.com/javase/7/docs/api/java/awt/AWTEvent.html) too - have to accept that isn't possible to create two events from …
  • Member Avatar
    mKorbel

    Replied To a Post in Rename file/directory using JFileChooser() and JButton()

    [crossposted](http://stackoverflow.com/questions/29347965/rename-file-directory-using-jfilechooser-and-jbutton)
  • Member Avatar
    mKorbel

    Replied To a Post in Scrolling a JPanel with JScrollPane

    " Does getPreferredSize not return how big you want the component to be in the GUI?" - there is only one correct notifier for LayoutManager (for customs too), rest mathods …
  • Member Avatar
    mKorbel

    Replied To a Post in Scrolling a JPanel with JScrollPane

    override (based on code posted here) - getPreferredSize for GridPanel - use getHeight/Weight in paintComponent - change scroll increment for JScrollBar for natural scrolling _________________________________________________________________ important everything is elsewhere - …
  • Member Avatar
    mKorbel

    Replied To a Post in Custom Binary Format

    I was looking for a few tips on where to get started? - is possible define MAPDATA as enum - depends of design I'm miss there tileCount == U32 and …
  • Member Avatar
    mKorbel

    Replied To a Post in Resizing all textures by screen width??

    - I'm disagree with java.util.Timer in Java7/8 for AWT/Swing based GUI - it could be possible by to call firePropertyChange from java.util.Timer - standard is (inaccurate) Swing Timer _______________________________________________________________________ - …
  • Member Avatar
    mKorbel

    Replied To a Post in Resizing all textures by screen width??

    quite disagree with @JamesCherrill 1. for Java animation is to use a java.util.Timer scheduleAtFixedRate == not is about Swing Timer with repaint or it should be from any more accurate …
  • Member Avatar
    mKorbel

    Replied To a Post in Help creating a program that remembers a generated picture & can redraw it

    JComponents API has implemented repaint() as recrusive method, container is (very extensive) repainted from a few events, notifiers, - create final arrays of Object (once time e.g. as local variable) …
  • Member Avatar
    mKorbel

    Replied To a Post in Help creating a program that remembers a generated picture & can redraw it

    but when I resize the window, the shapes change into new ones. - talking about resize from container to call repaint(from methods implemented in API), thats correct - create an …
  • Member Avatar
    mKorbel

    Replied To a Post in Using Java Web Start

    - [quite complete list of JWS](http://stackoverflow.com/tags/java-web-start/info), - also read jnlp ([Java Network Launching Protocol](http://stackoverflow.com/tags/jnlp/info)) - completed by [Andrew Thompso](http://stackoverflow.com/users/418556/andrew-thompson)n
  • Member Avatar
    mKorbel

    Replied To a Post in Removing the first line in JTextPane

    - code (skeleton, logics) is correct, - not reason to setContentType("text/html"); at runtime
  • Member Avatar
    mKorbel

    Replied To a Post in I want to copy TextArea text to a File...

    I want to copy TextArea text to a File... == for me (including properties from NativeOS, newline, tab, .....) is [JTextArea.write](http://docs.oracle.com/javase/7/docs/api/javax/swing/text/JTextComponent.html#write%28java.io.Writer%29)
  • Member Avatar
    mKorbel

    Replied To a Post in how does JOptionPane confirm dialog box work

    - JOptionPane can returns number, date, image, string - as is mentioned read API/Oracle tutorial - How to use Dialogs - two-three parts about JOptionPane
  • Member Avatar
    mKorbel

    Replied To a Post in Printing JTable with header image and footer image

    [crossposted](http://stackoverflow.com/questions/28208443/printing-from-a-jtable-including-logo-and-footer)
  • Member Avatar
    mKorbel

    Replied To a Post in JComboBox as a JTable Column editor

    1. Why is there AbstractTableModel (works only for methods that are override and if is the correct way), to use DefaultTableModel 2. Why is there used POJO (public class Product …
  • Member Avatar
    mKorbel

    Replied To a Post in JComboBox as a JTable Column editor

    aaaach :-) *My guess is that when the cell is rendered it adds the row, which causes the table to be re-drawn - which renders the cell again - ... …
  • Member Avatar
    mKorbel

    Replied To a Post in JComboBox as a JTable Column editor

    TableCellRenderer is called from all (could be very intensive, short period and repeatly) - Mouse Events inside JTable - Key Events - events implemented in rellated APIs
  • Member Avatar
    mKorbel

    Replied To a Post in Why radioButton print NULL?

    I'm think that is designated for Swing Action

The End.