Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1024205 // setScrollPaneBackground - set background color where no component is showing

JavaX fragment (include)

static JScrollPane setScrollPaneBackground(Color c, JScrollPane sp) {
  if (sp != null && c != null) swing { sp.getViewport().setBackground(c); }
  ret sp;
}

Author comment

Began life as a copy of #1024204

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024205
Snippet name: setScrollPaneBackground - set background color where no component is showing
Eternal ID of this version: #1024205/4
Text MD5: fe0048f0b232facdf5e6612e4bc04637
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-26 11:43:00
Source code size: 160 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 255 / 308
Version history: 3 change(s)
Referenced in: [show references]