Skip to content

Commit

Permalink
🎨 arrumando cores borda autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
AlissonSteffens committed Apr 13, 2018
1 parent 87899f4 commit ab5a9f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import javax.swing.JScrollPane;
import javax.swing.JToolBar;
import javax.swing.JWindow;
import javax.swing.border.LineBorder;
import javax.swing.event.DocumentEvent;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
Expand Down Expand Up @@ -96,6 +97,7 @@ protected int refreshPopupWindow() {
if(getPopupWindow().getComponent(0) != null){
JRootPane rootPane = (JRootPane) getPopupWindow().getComponent(0);
if(rootPane.getContentPane().getComponent(0)!= null){
rootPane.setBorder(new LineBorder(ColorController.FUNDO_ESCURO));
JScrollPane scrollPane = (JScrollPane) rootPane.getContentPane().getComponent(0);
scrollPane.setBackground(ColorController.FUNDO_BOTOES_EXPANSIVEIS);
WeblafUtils.configuraWebLaf(scrollPane);
Expand All @@ -112,8 +114,9 @@ public void componentShown(ComponentEvent ce) {
super.componentShown(ce); //To change body of generated methods, choose Tools | Templates.
if(!webLAFconfiguradoDescWindow){
JRootPane rootPane1 = (JRootPane) getDescWindow(popupWindow).getComponent(0);
//rootPane1.setBorder(new LineBorder(ColorController.FUNDO_ESCURO));
JScrollPane scrollPane = (JScrollPane) rootPane1.getContentPane().getComponent(0);

scrollPane.setBackground(ColorController.FUNDO_BOTOES_EXPANSIVEIS);
rootPane1.getContentPane().getComponent(1).setBackground(ColorController.FUNDO_BOTOES_EXPANSIVEIS);
JPanel panel = (JPanel)rootPane1.getContentPane().getComponent(1);
Expand Down

0 comments on commit ab5a9f3

Please sign in to comment.