I was wondering if anyone is aware of any JAPI examples other than those found on I find JAPI a great resource but I would like to see some larger examples of GUI's created.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
call j_gettext (obj, str)
! would have been easier if Fortran had consective enums
integer::msOpen, msClose, msQuit, msMax
parameter (msOpen = 1, msClose=2, msQuit = 3, msMax = 4)
integer::mObj(msMax)
...
mObj(msOpen) = j_button (jFrame, 'Open')
...
do
jObj = j_nextaction ()
do i = 1, msMax - 1, 1
if (mObj(i) .eq. jObj) goto 10
enddo
10 continue
select case (i)
case (msOpen)
...
case (msClose)
...
case (msQuit)
call j_quit ()
goto 99
end select
enddo
99 continue
stop
character inhalt*256
txt_task = j_textfield(frame1,20)
...
call j_gettext(txt_task,inhalt)
write(*,*) inhalt
character inhalt*256
txt_task = j_textfield(frame1,20)
10 obj=j_nextaction()
if(obj .eq. txt_task) then
call j_gettext(txt_task,inhalt)
write(*,*) inhalt
endif
goto 10