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

6
LINES

< > BotCompany Repo | #1035448 // addAndRepaint - add component to container and repaint the container

JavaX fragment (include)

svoid addAndRepaint(Container c, Component x) {
  if (c != null && x != null) swing {
    c.add(x);
    c.repaint();
  }
}

Author comment

Began life as a copy of #1015785

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035448
Snippet name: addAndRepaint - add component to container and repaint the container
Eternal ID of this version: #1035448/1
Text MD5: 6d8f10d48759273817242eedfa38e59d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-13 17:16:30
Source code size: 127 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 130 / 156
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)