Skip to content

Commit

Permalink
Merge pull request #49 from claire-oi/issue_37
Browse files Browse the repository at this point in the history
Changes background of mapping pane to white
  • Loading branch information
schuemie committed May 4, 2015
2 parents e5a2674 + 64763e3 commit 08c3601
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/org/ohdsi/rabbitInAHat/MappingPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ public void paint(Graphics g) {
g2d = (Graphics2D) g;
else
g2d = (Graphics2D) offscreen.getGraphics();

g2d.setBackground(Color.WHITE);
g2d.clearRect(0, 0, getWidth(), getHeight());

RenderingHints rh = new RenderingHints(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
g2d.setRenderingHints(rh);
// g2d.clearRect(0, 0, getWidth(), getHeight());
g2d.setRenderingHints(rh);

addLabel(g2d, "Source", sourceX + ITEM_WIDTH / 2, HEADER_HEIGHT / 2);
addLabel(g2d, "CDM", cdmX + ITEM_WIDTH / 2, HEADER_HEIGHT / 2);
Expand Down
3 changes: 3 additions & 0 deletions src/org/ohdsi/rabbitInAHat/RabbitInAHatMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
******************************************************************************/
package org.ohdsi.rabbitInAHat;

import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Image;
Expand Down Expand Up @@ -87,6 +88,8 @@ public void windowClosing(WindowEvent e) {
scrollPane1.setBorder(new TitledBorder("Tables"));
scrollPane1.getVerticalScrollBar().setUnitIncrement(16);
scrollPane1.setAutoscrolls(true);
scrollPane1.setOpaque(true);
scrollPane1.setBackground(Color.WHITE);
frame.addKeyListener(tableMappingPanel);

fieldMappingPanel = new MappingPanel(etl.getTableToTableMapping());
Expand Down

0 comments on commit 08c3601

Please sign in to comment.