JuceDemoBrowserPlugin() { addAndMakeVisible (textBox = new TextEditor (String::empty)); textBox->setMultiLine (true); textBox->setBounds (8, 8, 300, 300); addAndMakeVisible (button = new TextButton ("Send a message to the webpage")); button->setBounds (320, 8, 180, 22); button->addListener (this); button->setEnabled (false); ourJavascriptObject = new DemoBrowserObject (this); textBox->setText ("Browser version info: " + getBrowserVersion()); }
JuceDemoBrowserPlugin() : textBox (String::empty), button ("Send a message to the webpage") { addAndMakeVisible (textBox); textBox.setMultiLine (true); textBox.setBounds (8, 8, 300, 300); addAndMakeVisible (button); button.setBounds (320, 8, 180, 22); button.addListener (this); button.setEnabled (false); ourJavascriptObject = new DemoBrowserObject (this); textBox.setText (SystemStats::getJUCEVersion() + "\n\n" + "Browser: " + getBrowserVersion()); }