congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TextPopup
Code IndexAdd Tabnine to your IDE (free)

How to use
TextPopup
in
mage.cards

Best Java code snippets using mage.cards.TextPopup (Showing top 6 results out of 315)

origin: magefree/mage

/** This method is called from within the constructor to
 * initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
  popupText = new javax.swing.JTextArea();
  setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
  setLayout(new java.awt.BorderLayout());
  popupText.setBackground(new java.awt.Color(204, 204, 204));
  popupText.setColumns(20);
  popupText.setEditable(false);
  popupText.setLineWrap(true);
  popupText.setRows(1);
  popupText.setWrapStyleWord(true);
  popupText.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
  add(popupText, java.awt.BorderLayout.PAGE_START);
}// </editor-fold>//GEN-END:initComponents
origin: magefree/mage

/** Creates new form TextPopup */
public TextPopup() {
  initComponents();
}
origin: magefree/mage

tooltipText = new TextPopup();
tooltipText.setText(getText(cardType, newGameCard));
origin: magefree/mage

tooltipText.setText(getText(cardType));
origin: magefree/mage

private void showTooltipPopup(final TransferData data, final Component parentComponent, final Point parentPoint) {
  if (data.component != null) {
    tooltipDelay = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_SHOW_TOOLTIPS_DELAY, 300);
    if (tooltipDelay == 0) {
      return;
    }
  }
  if (cardInfoPane == null) {
    PopupFactory factory = PopupFactory.getSharedInstance();
    if (data.locationOnScreen == null) {
      if (data.component == null) {
        return;
      }
      data.locationOnScreen = data.component.getLocationOnScreen();
    }
    data.popupText.updateText();
    tooltipPopup = factory.getPopup(data.component, data.popupText, (int) data.locationOnScreen.getX() + data.popupOffsetX, (int) data.locationOnScreen.getY() + data.popupOffsetY + 40);
    tooltipPopup.show();
    // hack to get popup to resize to fit text
    tooltipPopup.hide();
    tooltipPopup = factory.getPopup(data.component, data.popupText, (int) data.locationOnScreen.getX() + data.popupOffsetX, (int) data.locationOnScreen.getY() + data.popupOffsetY + 40);
    tooltipPopup.show();
  } else {
    sumbitShowPopupTask(data, parentComponent, parentPoint);
  }
}
origin: magefree/mage

tooltipText.setText(getText(cardType, card));
mage.cardsTextPopup

Most used methods

  • <init>
    Creates new form TextPopup
  • add
  • initComponents
    This method is called from within the constructor to initialize the form. WARNING: Do NOT modify thi
  • setBorder
  • setLayout
  • setText
  • updateText

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Notification (javax.management)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now