how call javascript from applet original java code: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 import java.applet.*; import java.net.*; public class InJava4 extends Applet{ public void init(){ String msg = "Hello from Java (using javascript alert)"; try { getAppletContext().showDocument (new URL("javascript:doAlert("" + msg +"")")); } catch (MalformedURLException me) { } } } jabaco Source code 1 Applet1.Parent.getAppletContext().showDocument(New java#net#URL("javascript:DOalert("" + msg +"")") ) ...
Good JTable example with sort Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Public Sub Form_Load() Dim dtm As New DefaultTableModel() Dim h As NEW JTableHeader Dim s As JScrollPane dtm.addColumn("test") dtm.addColumn("test 2") dtm.addColumn("test 3") dtm.setRowCount(200) dtm.setValueAt("1",0,0) dtm.setValueAt("2",1,0) dtm.setValueAt(True,0,1) Dim jt As New JTable(dtm) Set h = jt.getTableHeader() jt.setBounds(0,100,600,600) jt.setAutoCreateRo...
Tried this code - it works, but glitchy. Jabaco Source 1 2 3 4 5 6 7 8 9 10 11 12 13 14 JBGrid1.Editable = jbEditOnClick JBGrid1.DataMatrix(1,0) = "test" JBGrid1.DataMatrix(1,0).CellBackColor = RGB(255,0,0) JBGrid1.DataMatrix(1,0).CellForeColor = RGB(255,255,0) JBGrid1.Parent.getColumnModel().getColumn(1).setCellEditor(New DEFAULTCellEditor(New JCheckBox())) JBGrid1.DataMatrix(0,1) = 0 JBGrid1.DataMatrix(0,1).Editable = True JBGrid1.DataMatrix(1,1) = 0 JBGrid1.DataMatrix(1,1).Editable = True JBG...
Why this dosen't work? Jabaco Source 1 JBGrid1.Parent.getColumnModel().getColumn(0).setCellEditor(New DEFAULTCellEditor(New JCheckBox()) )
Accidently Found this way to activate sort : Public Sub Form_Load() JBGrid1.Parent.setAutoCreateRowSorter(True) JBGrid1.TextMatrix(1,1) = "1" JBGrid1.TextMatrix(2,1) = "2" End Sub