首页 \ 问答 \ JavaFX - 将LinkedHashMap绑定到ComboBox(JavaFX - Bind LinkedHashMap to ComboBox)

JavaFX - 将LinkedHashMap绑定到ComboBox(JavaFX - Bind LinkedHashMap to ComboBox)

我有LinkedHashMap与来自数据库的数据。

private Map<Integer, String> linkedHashMap = new LinkedHashMap<>();
eg: 1, Value1
    2, Value2
    etc.

我能够将这个LinkedHashMap与ComboBox绑定为Observable值吗?

到目前为止,我已经填充了这个ComboBox这个代码。

ComboBox.getItems().addAll(this.linkedHashMap.values());

问题是如果我需要重新加载值,我必须清除所有ComboBox值,并且必须再次导入值。


I have LinkedHashMap with data from database.

private Map<Integer, String> linkedHashMap = new LinkedHashMap<>();
eg: 1, Value1
    2, Value2
    etc.

Am I able to bind this LinkedHashMap with ComboBox as Observable values?

So far, I have filled this ComboBox this code.

ComboBox.getItems().addAll(this.linkedHashMap.values());

Problem is if I need to reload values I have to clear all ComboBox values and I have to import values again.


原文:https://stackoverflow.com/questions/41180063
更新时间:2023-08-08 21:08

最满意答案

这个库使用matlab组件运行时,这在android上是不可用的。 请参阅如何在Android设备上运行Matlab代码?

您可以使用其他框架,例如Recognito


This library uses matlab component runtime, which is not available on android. See How to run Matlab code on an Android device?

You can use other framework instead like Recognito

相关问答

更多
  • 看看4 Feets.com 4 Feets.com 他们有一个很好的概述,在SDK 1.5中有一个关于语音注册的小例子。 Have a look at 4 Feets.com 4 Feets.com They have a nice overview with a little example regarding voice reg in SDK 1.5.
  • 好吧,正如项目业主在这里所说的那样,不像HTS补丁的Flite for PC,它可以使用HTS的声音,Flite for android不支持它们。 由于格式非常不同,因此它们不可互换。 现在在Android上使用HTS语音的唯一方法是在Android上移植HTS-patched Flite。 OK, as the project owner said here, unlike HTS-patched Flite for PC, which can use HTS voices, Flite for and ...
  • “pygooglevoice”可以执行Python中的大部分语音功能。 它可以发送短信。 我已经开发了接收短信的代码,但由于目前的Google语音界面,开销过大。 每个投票回报超过10万的内容,所以你每天使用一个四分之一吉字节只需轮询每30秒。 有关Google代码的讨论。 我听说有传言说Google Voice API会在两周内出现,所以值得等待。 No, there is no API for Google Voice as of 2019. "pygooglevoice" can perform mo ...
  • 如果您使用的AndroidManifest.xml与您使用的相同,那么您的语音触发meta-data就会输入错误: 你有com.google.angroid...而不是com.google.android... If you've AndroidManifest.xml you s ...
  • 这个库使用matlab组件运行时,这在android上是不可用的。 请参阅如何在Android设备上运行Matlab代码? 您可以使用其他框架,例如Recognito This library uses matlab component runtime, which is not available on android. See How to run Matlab code on an Android device? You can use other framework instead like Rec ...
  • 我安装的S-Voice版本将响应以下任何意图操作: final String SVOICE_PACKAGE_NAME = "com.vlingo.midas"; final String SVOICE_LISTEN_ACTION = "com.sec.action.SVOICE"; final Intent intent = new Intent(); intent.setPackage(SVOICE_PACK ...
  • 开发者。Android表示RemoteInput.getResultsFromIntent(intent); 是一个调用,所以我们不需要解析ClipData,所以我做了一些研究和discorver什么是需要解析这个ClipData,这就是我解决我的问题: private void getMessageText(Intent intent){ ClipData extra = intent.getClipData(); Log.d("TAG", "" + extra.getItemCoun ...
  • 无法与样本级别(或时域)上的语音样本进行比较。 口语单词的每个部分的长度可能不同,因此它们不会匹配,每个部分的级别也会变化,等等。 另一个问题是声音信号所包含的各个分量的相位也可以改变,因此听起来相同的两个信号在时域中看起来可能非常不同。 因此,最好的解决方案是将信号移入频域。 一种常见的方法是使用快速傅里叶变换(FFT)。 你可以查阅一下,网上有很多关于这方面的资料,并且在Python中对它有很好的支持。 然后可以这样继续: 将声音样本分成几毫秒的小段。 找出段的FFT的主要系数。 比较一些选定主系数的序 ...
  • 对于录制Android,可以使用android.media.MediaRecorder。 此页面中列出了所有API http://developer.android.com/reference/android/media/MediaRecorder.html 。 这应该可以解决您的所有问题。 示例代码 MediaRecorder recorder = new MediaRecorder(); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); ...
  • 我从这个链接示例中找到答案,将Audio转换为wave formate 谢谢 I found answer from this link Example to convert Audio to wave formate Thanks

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。