Skip to content

Commit

Permalink
Merge pull request apache#2689 from mhalachev/NETBEANS-2260-Welcome-P…
Browse files Browse the repository at this point in the history
…age-header-graphics

[NETBEANS-2260] Welcome Page header graphics
  • Loading branch information
matthiasblaesing authored Jan 19, 2021
2 parents 05596b1 + 5456c86 commit 5b90934
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.RenderingHints;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
Expand Down Expand Up @@ -78,6 +79,11 @@ protected void paintComponent( Graphics g ) {
int width = getWidth();
int height = getHeight();

RenderingHints rh = new RenderingHints(
RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BICUBIC);

g2d.setRenderingHints(rh);
g2d.setColor( Utils.getBorderColor() );
g2d.drawRect( 0, 0, width, 12 );

Expand Down

0 comments on commit 5b90934

Please sign in to comment.