private void ok() { notePadMeta = new NotePadMeta(); if ( wDesc.getText() != null ) { notePadMeta.setNote( wDesc.getText() ); } if ( wFontName.getText() != null ) { notePadMeta.setFontName( wFontName.getText() ); } notePadMeta.setFontSize( wFontSize.getSelection() ); notePadMeta.setFontBold( wFontBold.getSelection() ); notePadMeta.setFontItalic( wFontItalic.getSelection() ); // font color notePadMeta.setFontColorRed( wFontColor.getBackground().getRed() ); notePadMeta.setFontColorGreen( wFontColor.getBackground().getGreen() ); notePadMeta.setFontColorBlue( wFontColor.getBackground().getBlue() ); // background color notePadMeta.setBackGroundColorRed( wBackGroundColor.getBackground().getRed() ); notePadMeta.setBackGroundColorGreen( wBackGroundColor.getBackground().getGreen() ); notePadMeta.setBackGroundColorBlue( wBackGroundColor.getBackground().getBlue() ); // border color notePadMeta.setBorderColorRed( wBorderColor.getBackground().getRed() ); notePadMeta.setBorderColorGreen( wBorderColor.getBackground().getGreen() ); notePadMeta.setBorderColorBlue( wBorderColor.getBackground().getBlue() ); notePadMeta.setDrawShadow( wDrawShadow.getSelection() ); dispose(); }
ni.setFontColorBlue( n.getFontColorBlue() ); ni.setBackGroundColorRed( n.getBackGroundColorRed() ); ni.setBackGroundColorGreen( n.getBackGroundColorGreen() ); ni.setBackGroundColorBlue( n.getBackGroundColorBlue() );
ni.setFontColorBlue( n.getFontColorBlue() ); ni.setBackGroundColorRed( n.getBackGroundColorRed() ); ni.setBackGroundColorGreen( n.getBackGroundColorGreen() ); ni.setBackGroundColorBlue( n.getBackGroundColorBlue() );
note.setBackGroundColorRed( (int) r.getInteger( "FONT_BACK_GROUND_COLOR_RED", NotePadMeta.COLOR_RGB_DEFAULT_BG_RED ) ); note.setBackGroundColorGreen( (int) r.getInteger(