просмотр текста ячеек по пкм.
v++
This commit is contained in:
@@ -4,6 +4,7 @@ import Common.Utils.Utils_;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.util.Vector;
|
||||
public class TableMenu extends StyledPopupMenu {
|
||||
int row = CommonConstants.Nan;
|
||||
int column = CommonConstants.Nan;
|
||||
@@ -34,7 +35,16 @@ public class TableMenu extends StyledPopupMenu {
|
||||
mcopy.setVisible(true);
|
||||
Dimension d= new Dimension(Math.max(mcopy.getWidth(), 300),100);
|
||||
value_view.setVisible(true);
|
||||
value_view.setText(target.toString());
|
||||
String res = target.toString();
|
||||
if (target instanceof Vector){
|
||||
Vector<Object> v = (Vector<Object>) target;
|
||||
Vector<String> res_ = new Vector<>();
|
||||
for (Object o: v){
|
||||
res_.add(o.toString());
|
||||
}
|
||||
res = String.join("\n", res_);
|
||||
}
|
||||
value_view.setText(res);
|
||||
value_scroll.setPreferredSize(d);
|
||||
} else {
|
||||
mcopy.setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user