use of com.google.security.zynamics.zylib.gui.SwingInvoker in project binnavi by google.
the class CProgressPanel method setSubText.
public void setSubText(final String subDescription) {
String text = fitTextToLabel(m_description) + "\n";
text += fitTextToLabel(subDescription);
m_label.setText(convertTextToHtml(text));
new SwingInvoker() {
@Override
public void operation() {
m_label.updateUI();
}
}.invokeLater();
}
use of com.google.security.zynamics.zylib.gui.SwingInvoker in project binnavi by google.
the class CProgressPanel method setText.
public void setText(final String description) {
m_description = description;
String text = convertTextToHtml(description);
text = fitTextToLabel(text);
m_label.setText(text);
new SwingInvoker() {
@Override
public void operation() {
m_label.updateUI();
}
}.invokeLater();
}
use of com.google.security.zynamics.zylib.gui.SwingInvoker in project binnavi by google.
the class CMemorySectionBox method setSelectedItem.
@Override
public void setSelectedItem(final Object section) {
if (section == null) {
return;
}
for (int i = 0; i < getItemCount(); i++) {
final CMemorySectionWrapper wrapper = getItemAt(i);
if (wrapper == section || wrapper.getObject() == section) {
super.setSelectedItem(wrapper);
new SwingInvoker() {
@Override
protected void operation() {
updateUI();
}
}.invokeLater();
}
}
}
Aggregations