You are not logged in.

Search results

Search results 1-9 of 9.

Monday, February 14th 2011, 3:36pm

Author: sedrok

how call javascript from applet

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 +"")") ) ...

Monday, April 12th 2010, 3:17pm

Author: sedrok

JTable example with sort

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...

Tuesday, April 6th 2010, 9:55am

Author: sedrok

Checkbox in JBGrid

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...

Monday, April 5th 2010, 11:09am

Author: sedrok

Checkbox in JBGrid

Why this dosen't work? Jabaco Source 1 JBGrid1.Parent.getColumnModel().getColumn(0).setCellEditor(New DEFAULTCellEditor(New JCheckBox()) )

Thursday, March 18th 2010, 2:15pm

Author: sedrok

How to sort the JBGrid?

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

Thursday, March 18th 2010, 2:01pm

Author: sedrok

How to sort the JBGrid?

How to sort the JBGrid?

WoltLab Burning Board