fixed Minumum Size of ChatWindow.
This commit is contained in:
		
							parent
							
								
									e0ca1c77bb
								
							
						
					
					
						commit
						84c852c9b5
					
				| 
						 | 
					@ -23,10 +23,10 @@ public class ClientUI extends Application {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // configure and show stage
 | 
					            // configure and show stage
 | 
				
			||||||
            primaryStage.setScene(scene);
 | 
					            primaryStage.setScene(scene);
 | 
				
			||||||
            primaryStage.setMinWidth(420);
 | 
					 | 
				
			||||||
            primaryStage.setMinHeight(250);
 | 
					            primaryStage.setMinHeight(250);
 | 
				
			||||||
            primaryStage.setTitle("Multichat Client");
 | 
					            primaryStage.setTitle("Multichat Client");
 | 
				
			||||||
            primaryStage.show();
 | 
					            primaryStage.show();
 | 
				
			||||||
 | 
					            primaryStage.setMinWidth(primaryStage.getWidth()); //use automatically computed size as Minimum Size.
 | 
				
			||||||
        } catch(Exception e) {
 | 
					        } catch(Exception e) {
 | 
				
			||||||
            System.err.println("Error starting up UI" + e.getMessage());
 | 
					            System.err.println("Error starting up UI" + e.getMessage());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue