Skip to content

Commit bb664c2

Browse files
committed
Fixed border display glitch in jtree
1 parent 00c203d commit bb664c2

File tree

1 file changed

+3
-1
lines changed
  • lib/JavaTreeWrapper_20151110/JavaTreeWrapper/+uiextras/+jTree

1 file changed

+3
-1
lines changed

lib/JavaTreeWrapper_20151110/JavaTreeWrapper/+uiextras/+jTree/Tree.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,16 @@ function createTreeContainer(tObj,hParent)
478478
% Create the base panel
479479
tObj.hPanel = uipanel(...
480480
'Parent',double(hParent),...
481-
'BorderType','none',...
481+
'BorderType','line',...
482+
'HighlightColor', [130/255 135/255 144/255], ...
482483
'Clipping','on',...
483484
'DeleteFcn',@(src,e)delete(tObj),...
484485
'Visible','on',...
485486
'UserData',tObj);
486487

487488
% Create a scroll pane
488489
tObj.jScrollPane = javaObjectEDT('com.mathworks.mwswing.MJScrollPane',tObj.jTree);
490+
tObj.jScrollPane.setBorder(javax.swing.BorderFactory.createEmptyBorder());
489491
[~,tObj.hJContainer] = javacomponent(tObj.jScrollPane,[0 0 100 100],tObj.hPanel);
490492
set(tObj.hJContainer,'Units','normalized','Position',[0 0 1 1])
491493

0 commit comments

Comments
 (0)