Option Button in JTable?
Hi, I read the Swing Tutorial for the JTable. Inside the tutorial, it says that Boolean is rendered with checkbox, however, can it be rendered as a RadioButton instead?
Thanks
Yes you can, check this out:
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
Similar Messages
-
Option button click on IE is not working
I am trying to play around with Excel VBA code to select an option button on a webpage. For some reason the option button is not getting selected even though there is no errors when executing the code. Please share your thoughts.
Excel VBA code block given below.
Sub Voting()
Dim MyHTML_Element As IHTMLElement
Dim MyURL As String
Dim x As Object
MyURL = "https://www.surveymonkey.com/r/?sm=%2bZAmxFYpsYG1R61ELcYA6g%3d%3d"
Set MyBrowser = New InternetExplorer
With MyBrowser
.Silent = True
.navigate MyURL
.Visible = True
Do
Loop Until .readyState = READYSTATE_COMPLETE
Do Until Not x Is Nothing
Set x = .document.getElementById("ID of one of the option button")
Loop
Set x = Nothing
.document.getElementById("ID of one of the option button").Click
Set HTMLDoc = .document
For Each MyHTML_Element In HTMLDoc.getElementsByTagName("button")
If MyHTML_Element.Type = "submit" Then MyHTML_Element.Click: Exit For
Next
Set HTMLDoc = Nothing
End With
MyBrowser.Quit
Set MyBrowser = Nothing
End SubYou must not be hitting the button. Please see this example.
http://vbadud.blogspot.com/2009/08/how-to-login-to-website-using-vba.html
Also, to dump everything from the site to Excel, try this.
Sub DumpData()
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
URL = "http://finance.yahoo.com/q?s=sbux&ql=1"
'Wait for site to fully load
IE.Navigate2 URL
Do While IE.Busy = True
DoEvents
Loop
RowCount = 1
With Sheets("Sheet1")
.Cells.ClearContents
RowCount = 1
For Each itm In IE.document.all
.Range("A" & RowCount) = itm.tagname
.Range("B" & RowCount) = itm.ID
.Range("C" & RowCount) = itm.classname
.Range("D" & RowCount) = Left(itm.innertext, 1024)
RowCount = RowCount + 1
Next itm
End With
End Sub
Joel, who frequents these forums, gave me that a long time ago. It's server me well for many projects.
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
I am the Windows admin for a university department and install PCs with Firefox all the time. This problem does not happen with every PC I maintain, only a select few (different model laptops with Windows 8.1 and update 1.) Until today, it only happened with new user accounts (with admin rights) that I setup on the laptops for our staff. Today this happened with The Administrator account while setting up a new laptop. In all cases so far, I install Windows from a saved image that was created using sysprep.
I have tried the many suggestions of resetting Firefox, deleting the users Firefox profile, deleting the users Windows profile, uninstalling/reinstalling Firefox, uninstalling/reinstalling Firefox and the latest Java, but nothing helps. After uninstalling, I run an app to delete temp files and caches and will even manually remove registry keys HKLM\SOFTWARE\Mozilla and HKCU\SOFTWARE\Mozilla. Plus I reboot and make sure the install folder is deleted after uninstall.
Results are the same: after installing Firefox 31, the initial setup window for migrating IE and/or Chrome pops up and after clicking the Finish button, Firefox starts, but does not show the initial new user page, only a blank page. Clicking on the Options button (3 bars) does nothing. Right-clicking in the proper area, the popup menu appears so I can choose to Customize, but that only opens another tab with about:customize in the URL and the page is blank. From the right-click popup menu, I can enable the Menu Bar and get to Options from that.
My latest attempt has helped a little. I uninstalled Firefox 31, cleaned up, deleted user Firefox profile, rebooted and then installed Firefox 30. Inital startup runs, and tells me I'm not up to date, and the Options button works. But I still cannot customize.
I then upgraded to Firefox 31, but then it's back to no startup page, no options button and no customize. I can downgrade to 30 and get all but customize working again.
Only Addon is one for McAfee Scriptscan for Firefox 15.1.0, which just after installing is disabled.
Any help would be appreciated. Thank you.Ok. I disabled hardware acceleration. The only extension is the McAfee Scriptscan for Firefox 15.1.0, which was already disabled. I then disabled all plugins (Acrobat, Google Update, Intel Identity Protection (2x), Java Deployment Toolkit, Java Platform, MS Office 2013, Quicktime, Shockwave, Silverlight), which were all up to date.
Normal or safe mode still has same result. No startup, no option button and no customize.
Thanks for your help. Got any other suggestions? -
On my macbook pro i have to hold the alt/option button when starting up...
otherwise windows xp is the default hardrive that starts.....how to change the default hardrive at start up to be the mac? it's just getting annoying always having to hold the alt/option button at start up
Hi brazzy3,
Welcome to the forum.
You can set the default startup disk from within System Preferences in OSX. Simply fire up System Preferences, select Startup Disk then select the volume you want to startup from automatically.
Boot Camp Beta also installs a Startup Disk control panel that lets you set the default operating system when you’re running Windows XP. -
Problem using Option Buttons in a form
Hello,<o:p></o:p>
I created a form in Word using a table for defining the layout. Inside of some cells I inserted some Rich Text Content Control and in some others Option Buttons (ActiveX Control). Everything
was working correctly.<o:p></o:p>
The problem appears when I restrict the formatting and editing. I select the option "Allow only this type of editing in the document" and then choose "Filling in forms",
finally click on "Yes Start Enforcing Protection". <o:p></o:p>
Now if I want to fill in the form, at the beginning I'm able to click on the Cells with the Rich Text Content Control and type in some text, but as soon as I click on any of the Option Buttons
all the Rich Text Content Controls get blocked, and I am not able to modify the text anymore. <o:p></o:p>
The only way to make it work again is to jump to the next cells using the Tab key instead of using the mouse. If I go to the "Restrict Editing" and "Stop Protection", then
everything works correctly.
If I delete the Option Buttons the problem is solved as well, it doesn't matter if the from is protected or not.<o:p></o:p>
How can I solve this issue? I'm using Windows 7 and Office 2013.<o:p></o:p>
Thanks in advance.<o:p></o:p>W1zard is correct. Switch to Exec_SQL. Oracle does not support Forms using DBMS_SQL.
Now... please explain why you are not using a dynamic record group. It is SOOO much easier!
And if you want to look at some code using both methods, Exec_SQL and dynamic record group, you can download my "Quick Access" dynamic utility form, here: Oracle Forms Utilities -
How do I download Adobe Reader 9 in Firefox? Their instructions say to begin by clicking on the 'Edit Options' button on the yellow bar at the top. I have no such bar or button on my Firefox start page.
== This happened ==
Just once or twice
== About 1/2 hour ago.The instructions on the Adobe site are outdated and do no longer apply to current Firefox versions and you can ignore those instructions and save the Adobe installer to your desktop and start the installation with a double-click on that file.
See [[How do I edit options to add Adobe to the list of allowed sites]] -
How to get the current selected value of a combo box or a option button?
Hello All,
I want to catch the current selected value of a combo box and also of a option button and want save it into different variables in my code. These option button and combo box are in a SAP business one form which I have created through VB dot.net coding.
But I don't know how to do that, can any one send any example code for this.
Regards,
Sudeshna.Hi Sudesha,
If you want to get the selected values you can do it as follows: The Combo Box value you can get from the combo box. If you want to get it on the change event, you must make sure that you check when BeforeAction = False. If you want to get an Option Button value you should check the value in the data source attached to the option button.
Dim oForm As SAPbouiCOM.Form
Dim oCombo As SAPbouiCOM.ComboBox
Dim oData As SAPbouiCOM.UserDataSource
oForm = oApplication.Forms.Item("MyForm")
oCombo = oForm.Items.Item("myComboUID")
oApplication.MessageBox(oCombo.Selected.Value)
oData = oForm.DataSources.UserDataSources.Item("MyDataSourceName")
oApplication.MessageBox(oData.ValueEx)
Hope it helps,
Adele -
Option button missing in tools dropdown in ubuntu
firefox option button missing in tools dropdown
using ubuntu 14.04,,new intall
downloads
add-ons
set up sync
etc...
there but no option button to change any settings
like jump to new tab
or any of the other settings that are only accesable under that option buttonIts not issue, Ubuntu Options always available under the Edit Menu
Firefox 29, made the more customizable User Interface
*https://blog.mozilla.org/blog/2014/04/29/mozilla-introduces-the-most-customizable-firefox-ever-with-an-elegant-new-design/
Restore to older theme
*https://support.mozilla.org/en-US/kb/how-to-make-new-firefox-look-like-old-firefox -
when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what
Here is an article that describes what it is supposed to do:
Startup Manager: How to select a startup volume
If no Volumes are shown, it is telling you there are no potentailly bootable Volumes attached. That means your boot drive has died or the bootable image on it is unrecognizable.
What Mac Pro ? by year, GHz, number of processors, screen size?
What Mac OS X ? -
Edit/Options button not working on Droid 2
Edit/options button randomly stopped working, home and all other buttons work.
have factory reset my phone and taken the battery out.
any other suggestions?cwheeler1191 wrote:
Edit/options button randomly stopped working, home and all other buttons work.
have factory reset my phone and taken the battery out.
any other suggestions?
Good morning!
I'm sorry to learn of the issues you're having the the edit/options button. You've done a great job proactively troubleshooting by performing a reset and removing the battery. If you have not been able to resolve this issue, please PM me for more assistance.
Thank you! -
I t will tell you to look for a yellow bar at the top usually under the tool bar and it will ask you to "Edit Options" when you do, it will ask you if you allow the download/update or not.
My problem is, I am not getting this yellow bar anymore that gives me the "Edit Options" button so therefore, I do not think I am getting any updates!You didn't lose that button. It is Adobe that is lost and haven't update their instructions for a long time :wink:
The instructions on the Adobe site are outdated and do no longer apply to current Firefox versions and you can ignore those instructions and save the Adobe installer to your desktop and start the installation with a double-click on that file.<br />
See [[How do I edit options to add Adobe to the list of allowed sites]]
See also [[Adobe Reader]] and [[Opening PDF files within Firefox]] -
My iPhoto book making process lost an option button, help?
Hi, I have now ordered 3 medium softcovered books. After I placed these orders I realized that I should have increased my preference settings to the 300 dpi as suggested by many on this discussion board. So, I have since done so.
Now when I go back into iPhoto and attempt to make an album one of the option buttons along the bottom, (just to the right of the "Page Type" pull down menu) has disappeared. It used to give me options as to how many photos, caption, colors of page to choose from.
I am wondering if changing the preference setting could be at all the culprit? I am perplexed as to why this would have happened?
Any knowledge would be appreciated. I do see that the "Page Type" pull down menu has some of these choices, but the other button had more options and I miss it.
Thank you!
iMac Mac OS X (10.4.3) 800 MHz PowerPC G4, memory 512 MB SDRAM
iMac Mac OS X (10.4.3) 800 MHz PowerPC G4, memory 512 MB SDRAMJudy,
To the right of "Page Type" are there two little arrowheads pointing to the right? If they are there, click on them and you will get a drop down menu with the options.
Hope this helps!
Karen
iMac G3 450MHz Mac OS X (10.4.3) -
Have you chosen only one option button at a time
Hi...
I have got a problem while working with the option button in screen painter.I have three option buttons. In Run time, I want to select only one option button, mean while the other two option buttons should not be selected.
~
Thank You in Advance
Roseline Christina. BHi,
Please check the following
To select an OptionBtn item, the item must be bound to a data source (UserDataSource or DBDataSource) using OptionBtn.DataBind
The following is the sample to add 2 option buttons and group them.
Dim optBtn As SAPbouiCOM.OptionBtn
Dim oFrm As SAPbouiCOM.Form
Dim oItem As SAPbouiCOM.Item
Dim oUserdatasource As SAPbouiCOM.UserDataSource
' set oFrm = ..
'Option 1
Set oItem = oFrm.Items.Add("BD_rbRes", it_OPTION_BUTTON)
oItem.Left = 240
oItem.Top = 10
oItem.Height = 16
oItem.Width = 220
Set optBtn = oItem.Specific
optBtn.Caption = "Button One"
Set oUserDataSource = oFrm.DataSources.UserDataSources.Add("BD_resDS", dt_SHORT_TEXT,1)
optBtn.DataBind.SetBound True, , "BD_resDS"
'Option 2
Set oItem = oFrm.Items.Add("BD_rbPost", it_OPTION_BUTTON)
oItem.Left = 240
oItem.Top = 30
oItem.Height = 16
oItem.Width = 220
Set optBtn = oItem.Specific
optBtn.Caption = "Button Two"
oItem.Visible = False
Set optBtn = oItem.Specific
optBtn.GroupWith ("BD_rbRes")
Hope this helps,
Vasu Natari. -
Options button should be on the left side (Mobile Apps)
Hello guys!
First of all: I love your product so please do keep up the good work. Secondly, I'm a frequent user of your mobile app, and with the newest update you put the scroll bar and the options button on the same side. This creates a problematic situation as it is hard to hit the one you want. Every day I accidentaly scroll when i want options and vica verca, so what I'm proposing is that you keep the scroll function on the right side and move the options button to the left side. This would make an already awesome app near perfect. Hope you'll take this into consideration for your next update.
Kind Regards MJUpdated: 2015-07-02Hello!
Your idea has been submitted a while ago but unfortunately hasn't gathered enough kudos (25 per year). In order to keep an overview of the active ideas in this forum, we will close this idea for now. However this does not mean that your idea has been declined by Spotify.
If you still feel strongly about your request, we encourage you to post your idea in a little different form again! Maybe now is the right time to receive the support of our community for your suggestion! ;)
Do you have any further questions on how the idea exchange is managed? Just click here! -
"Photos" option button in icloud control panel not working
Photos option button in icloud control panel not working...it is not greyed out, and it is ticked, but clicking on it has no effect. Windows 8.
luvsack wrote:
DOES ANYBODY RESPOND TO THESE QUESTIONS EVER? I HAVE THE SAME PROBLEM AND CAN FIND NO ANSWER ANYWHERE! ANSWER THE **** QUESTION PLEASE!!!!!!!!!!!!!!!!!!!!!!!
Windows 7 64
Start your own thread, and please stop shouting, it is hard to read, and who wants that.
Maybe you are looking for
-
I am trying to buy Logic Pro 9 from the app store, but every time I try I get an error
I just bought a brand new MacBook Pro 15" that runs OS X Lion and I am trying to download Logic Pro 9, but when I try to download it all I get is an error window that says "There was an error in the App Store. Please try again later. (100)" I have t
-
Why does my Xserve keep crashing?
Running 10.7.2 Dec 27 00:30:00 xserve newsyslog[14983]: logfile turned over due to size>1000K Dec 27 00:30:09 xserve kernel[0]: IOSCSIMultipathedLogicalUnit: Timed out waiting for paths to become available, loops = 4 Dec 27 00:30:20 xserve kernel[0]:
-
Where can i download ios 6 and install it to my iphone
PLease where can i download an program softwere ios 6 and install on my iphone
-
Question - What to do when 3G iphone freezes up when dowloading/syncing pictures??
-
Dear All Am new to SAP B1, pls help me to get some study materials. Rgds Ragavv