本文整理汇总了Java中cuchaz.enigma.gui.Gui类的典型用法代码示例。如果您正苦于以下问题:Java Gui类的具体用法?Java Gui怎么用?Java Gui使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Gui类属于cuchaz.enigma.gui包,在下文中一共展示了Gui类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PanelObf
import cuchaz.enigma.gui.Gui; //导入依赖的package包/类
public PanelObf(Gui gui) {
this.gui = gui;
Comparator<ClassEntry> obfClassComparator = (a, b) -> {
String aname = a.getName();
String bname = b.getName();
if (aname.length() != bname.length()) {
return aname.length() - bname.length();
}
return aname.compareTo(bname);
};
this.obfClasses = new ClassSelector(obfClassComparator);
this.obfClasses.setListener(gui::navigateTo);
this.setLayout(new BorderLayout());
this.add(new JLabel("Obfuscated Classes"), BorderLayout.NORTH);
this.add(new JScrollPane(this.obfClasses), BorderLayout.CENTER);
}
示例2: main
import cuchaz.enigma.gui.Gui; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
Gui gui = new Gui();
// parse command-line args
if (args.length >= 1) {
gui.getController().openJar(new JarFile(getFile(args[0])));
}
if (args.length >= 2) {
gui.getController().openMappings(getFile(args[1]));
}
// DEBUG
//gui.getController().openDeclaration(new ClassEntry("none/bxq"));
}
示例3: main
import cuchaz.enigma.gui.Gui; //导入依赖的package包/类
public static void main(String[] args) throws Exception {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
Gui gui = new Gui();
// parse command-line args
if (args.length >= 1) {
gui.getController().openJar(new JarFile(getFile(args[0])));
}
if (args.length >= 2) {
gui.getController().openMappings(getFile(args[1]));
}
// DEBUG
//gui.getController().openDeclaration(new ClassEntry("none/bxq"));
}
示例4: PanelDeobf
import cuchaz.enigma.gui.Gui; //导入依赖的package包/类
public PanelDeobf(Gui gui) {
this.gui = gui;
this.deobfClasses = new ClassSelector(ClassSelector.DEOBF_CLASS_COMPARATOR);
this.deobfClasses.setListener(gui::navigateTo);
this.setLayout(new BorderLayout());
this.add(new JLabel("De-obfuscated Classes"), BorderLayout.NORTH);
this.add(new JScrollPane(this.deobfClasses), BorderLayout.CENTER);
}
示例5: PanelIdentifier
import cuchaz.enigma.gui.Gui; //导入依赖的package包/类
public PanelIdentifier(Gui gui) {
this.gui = gui;
this.setLayout(new GridLayout(4, 1, 0, 0));
this.setPreferredSize(new Dimension(0, 100));
this.setBorder(BorderFactory.createTitledBorder("Identifier Info"));
}
示例6: main
import cuchaz.enigma.gui.Gui; //导入依赖的package包/类
public static void main(String[] args) throws Exception
{
Gui gui = new Gui();
// parse command-line args
if(args.length >= 1)
gui.getController().openJar(new JarFile(getFile(args[0])));
if(args.length >= 2)
gui.getController().openMappings(getFile(args[1]));
// DEBUG
// gui.getController().openDeclaration(new ClassEntry("none/bxq"));
}