小编QA_*_*Col的帖子

./configure我可以使用/ some/path/configure - Unix,Linux

为什么需要这样做(在容器目录中):

# cd /container/directory/
# ./configure
Run Code Online (Sandbox Code Playgroud)

代替:

# pwd
/external/path
# /container/directory/configure 
Run Code Online (Sandbox Code Playgroud)

也许是因为调用./configure/容器/目录/中创建的文件里面/容器/目录/

是否可以选择在/ container /目录// external/path调用内部创建文件(makefile等)?

就像是:

# /container/directory/configure --CreateOutputFiles=/container/directory/
Run Code Online (Sandbox Code Playgroud)

unix installation makefile path configure

5
推荐指数
0
解决办法
41
查看次数

我看不到Swing JSeparator

我有这个代码:

  JPanel jpMainExample = new JPanel(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));
  jpMainExample.add(new JLabel("JLabel"));
  jpMainExample.add(new JTextField("JTextField"));
  jpMainExample.add(new JSeparator(JSeparator.VERTICAL));
  jpMainExample.add(new JRadioButton("JRadioButton"));
  jpMainExample.add(new JSeparator(SwingConstants.VERTICAL));
  jpMainExample.add(new JComboBox<>(new String[] {"JComboBox"}));
  jpOUT.add(jpMainExample);
Run Code Online (Sandbox Code Playgroud)

但是,我看不到分隔符.

在此输入图像描述

怎么了?

java swing jpanel jseparator

4
推荐指数
1
解决办法
1901
查看次数

将FontAwesome 5.x与PrimeFaces 6.2+一起使用

我正在检查以下问题: 如何将Webjars.org中的Font Awesome与JSF一起使用 ant此问题: PrimeFaces中的FontAwesome 及其答案/sf/answers/2314909341/

嗨,我想使用https://fontawesome.com/changelog/latest 5.5版本的新图标

在我的pom.xml档案专案中...

    <dependency>
        <groupId>org.primefaces</groupId>
        <artifactId>primefaces</artifactId>
        <version>6.2</version>
    </dependency>
    <dependency>
        <groupId>org.primefaces.extensions</groupId>
        <artifactId>primefaces-extensions</artifactId>
        <version>6.2</version>
    </dependency>
    <dependency>
        <groupId>org.omnifaces</groupId>
        <artifactId>omnifaces</artifactId>
        <version>2.1</version>
    </dependency>


    <!-- https://mvnrepository.com/artifact/org.webjars/font-awesome -->
    <dependency>
        <groupId>org.webjars</groupId>
        <artifactId>font-awesome</artifactId>
        <version>5.5.0</version>
    </dependency>
Run Code Online (Sandbox Code Playgroud)

在我的web.xml档案中

<!-- Fontawesome --> 
<context-param>
    <param-name>primefaces.FONT_AWESOME</param-name>
    <param-value>true</param-value>         
</context-param>
Run Code Online (Sandbox Code Playgroud)

在我的facelet .xhtml中

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="/templates/template.xhtml">
    <ui:define name="body">
        <h:outputScript library="webjars" name="font-awesome/5.5.0/js/all.js"/>

...

    <p:spacer width="10"/>6
    <h:outputText styleClass="fas fas-map"/>7
    <h:outputText styleClass="fa fa-venus-mars fa-icon-custom" />
    <h:outputText styleClass="fa fa-female fa-icon-custom" />
    <h:outputText styleClass="fa fa-male …
Run Code Online (Sandbox Code Playgroud)

icons primefaces font-awesome

2
推荐指数
1
解决办法
893
查看次数