如何在JavaFX webview中查找相对路径

时间:2015-06-11 19:51:54

标签: java webview javafx path

我想通过调用:{/ p>在JavaFX webview中添加图片

m2["annotations"] = m2[pd.isnull(m2["annotations_x"])]["annotations_y"]

m2
#   term annotations_x annotations_y annotations
# 0  oo1           NaN          too1        too1
# 1  oo2           NaN          too2        too2
# 2  oo3           NaN          too3        too3
# 3  aa1          taa1           NaN         NaN
# 4  aa2          taa2           NaN         NaN
# 5  oo4           NaN          too4        too4

m2["annotations"] = m2[pd.isnull(m2["annotations_y"])]["annotations_x"]
m2
#  term annotations_x annotations_y annotations
# 0  oo1           NaN          too1         NaN
# 1  oo2           NaN          too2         NaN
# 2  oo3           NaN          too3         NaN
# 3  aa1          taa1           NaN        taa1
# 4  aa2          taa2           NaN        taa2
# 5  oo4           NaN          too4         NaN

但我什么都没得到。我不想使用像这样的方法:

webView.getEngine().loadContent("<img src="image.png" />");

因为它会给我一条我不需要的绝对路径,因为在我的应用程序中,我将转移使用TCP协议生成的页面。

0 个答案:

没有答案