Skip to content

Commit 33ceb62

Browse files
committed
调整默认内存
1 parent 6cf337c commit 33ceb62

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/io/nbs/client/ui/panels/manage/holder/AttachDataViewHolder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
public abstract class AttachDataViewHolder extends ViewHolder {
3636
private static final Logger logger = LoggerFactory.getLogger(AttachDataViewHolder.class);
3737
private int iconSize = 28;
38-
public JIMSendTextPane attachmentTitle;
39-
public JIMSendTextPane hashTitle;
38+
public SizeAutoAdjustTextArea attachmentTitle;
39+
public SizeAutoAdjustTextArea hashTitle;
4040
public LCProgressBar progressBar = new LCProgressBar();//进度条
4141
public JPanel timePanel = new JPanel();//时间面板
4242
public JPanel iconInfoPanel = new JPanel();//图标 组合面板
@@ -62,15 +62,15 @@ public AttachDataViewHolder() {
6262
*
6363
*/
6464
private void initComponents(){
65-
int maxWidth = (int)(MainFrame.getContext().currentWindowWidth*0.15);
66-
attachmentTitle = new JIMSendTextPane();
67-
hashTitle = new JIMSendTextPane();
65+
int maxWidth = (int)(MainFrame.getContext().currentWindowWidth*0.35);
66+
attachmentTitle = new SizeAutoAdjustTextArea(maxWidth);
67+
hashTitle = new SizeAutoAdjustTextArea(maxWidth);
6868
attachmentTitle.setEditable(false);
6969
hashTitle.setEditable(false);
7070

7171
//iconInfoPanel.setBackground(ColorCnst.MAIN_COLOR);
7272
iconInfoPanel.setBackground(ColorCnst.WINDOW_BACKGROUND_LIGHT);
73-
iconInfoPanel.setMinimumSize(new Dimension(60,100));
73+
// iconInfoPanel.setMinimumSize(new Dimension(45,90));
7474

7575
ImageIcon lnormal = IconUtil.getIcon(Launcher.getContext(),"/icons/link.png",iconSize,iconSize);
7676
ImageIcon lactived = IconUtil.getIcon(Launcher.getContext(),"/icons/link_actived.png",iconSize,iconSize);

0 commit comments

Comments
 (0)