Skip to content

Commit

Permalink
update color separator
Browse files Browse the repository at this point in the history
  • Loading branch information
geilala authored and daawaan4U committed May 29, 2024
1 parent 7f6b362 commit f6a91de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/edu/project/components/TimeForecast.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ public TimeForecast(Context context) {
titlePanel.setOpaque(false);
titlePanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0));

JLabel titleLabel = new JLabel("5-Hour Forecast");
JLabel titleLabel = new JLabel("12-Hour Forecast");
titleLabel.setFont(new Font("Arial", Font.BOLD, 16));
titlePanel.add(titleLabel, BorderLayout.NORTH);

JSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);
separator.setForeground(Color.BLACK);
separator.setForeground(new Color(0, 0, 0, 0.2f));
separator.setPreferredSize(new Dimension(separator.getPreferredSize().width, 2));
titlePanel.add(separator, BorderLayout.SOUTH);

mainPanel.add(titlePanel, BorderLayout.NORTH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public WeatherForecastPanel(Context context) {
titlePanel.add(titleLabel, BorderLayout.NORTH);

JSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);
separator.setForeground(Color.BLACK);
separator.setForeground(new Color(0, 0, 0, 0.2f));
separator.setPreferredSize(new Dimension(separator.getPreferredSize().width, 2));
titlePanel.add(separator, BorderLayout.SOUTH);

mainPanel.add(titlePanel, BorderLayout.NORTH);
Expand Down

0 comments on commit f6a91de

Please sign in to comment.