@@ -50,20 +50,18 @@ public ContentWindow(AlgVisualizer algVisualizer) {
5050 */
5151 public void initComponents () {
5252
53- Dimension screenSize = Toolkit .getDefaultToolkit ().getScreenSize ();
54- double screenWidth = screenSize .getWidth ();
55- double screenHeight = screenSize .getHeight ();
53+ double screenHeight = Toolkit .getDefaultToolkit ().getScreenSize ().getHeight ();
5654 String [] sizeOptions ;
5755
5856 if (screenHeight > 1080.0 ) { // 4k
59- arrDisplayHeight = 1000 ;
57+ arrDisplayHeight = 2000 ;
6058 contentWidth = arrDisplayHeight ;
6159 sizeOptions = new String [] { "10" , "50" , "100" , "250" , "500" , "1000" };
6260 } else if (screenHeight < 1080.0 ) { // too small for original dimensions
6361 arrDisplayHeight = 500 ;
6462 contentWidth = arrDisplayHeight + 400 ;
6563 sizeOptions = new String [] { "10" , "50" , "100" , "250" , "500" };
66- } else { // Original dimensions
64+ } else { // Original dimensions (1080p)
6765 arrDisplayHeight = 900 ;
6866 contentWidth = arrDisplayHeight ;
6967 sizeOptions = new String [] { "10" , "50" , "100" , "300" , "450" , "900" };
@@ -83,8 +81,9 @@ public void initComponents() {
8381 buttonPanel .setBackground (Color .DARK_GRAY );
8482
8583 arrPanel = new JPanel ();
86- arrPanel .setBackground (Color .DARK_GRAY );
84+ arrPanel .setBackground (Color .RED );
8785 arrPanel .add (arrDisplay );
86+ //arrPanel.setPreferredSize(new Dimension(arrDisplayWidth, arrDisplayHeight));
8887 arrDisplay .setAlignmentX (0 );
8988
9089 // Initialize all components and add action listeners
@@ -174,11 +173,11 @@ public int getContentWidth() {
174173 }
175174
176175 public int getContentHeight () {
177- return contentWidth ;
176+ return contentHeight ;
178177 }
179178
180179 public int getArrDisplayWidth () {
181- return arrDisplayHeight ;
180+ return arrDisplayWidth ;
182181 }
183182
184183 public int getArrDisplayHeight () {
0 commit comments