I'm having this weird issue and it doesn't seem to be happening on Mac systems, but on Windows. I'm working on this GUI and am trying to make all of the buttons the same length (the length of the longest button) but for some reason on Windows, one of the buttons will not display the entire string and will truncate it with an ellipsis (...).
Here is the method I am using to check and set the longest button label:
    //Temp button to hold the longest button for resizing
    JButton longestButton = new JButton();
    //Find size of the largest of the 6 buttons
    for(int i = 0; i < 6; i++){
        if (buttons[i].getText().length() > longestButton.getText().length()){
            longestButton = buttons[i];
        }
    }
    //Match size of 6 hex buttons to the size of the longest one
    for(int i = 0; i < 6; i++){
        buttons[i].setPreferredSize(longestButton.getPreferredSize());
    }
Anybody have some insight into this?
 
     
    
 
     
    